I have the following problem. My normal work files are on a remote machine that I can SSH to. I want to be able to print from remote machine on a local printer without having to print to a file, and then scp file to the local machine.
What I need is a script or a program that can be invoked on the remote machine that accepts a file as an argument (or reads input from stdin, it does not matter), and somehow executes lpr on the local machine.
Constraints: 1) The local machine does not run SSH server. Thus, I cannot have a script that scp's the file back to local machine, and remotely executes lpr.
2) There is no mail server on the local machine, so I cannot send the file via e-mail, and have it filtered locally.
Both machines run Linux with normal assortment of programs, and I can run my own scripts, and compile programs. Any ideas?