lpr -Pprinter_name file.to.print
Note, the remote printer must be in /etc/printcap on the system you are logged into. For example, I had this in /etc/printcap on one of my machines. This was setup by ApsFilter but you can do something similar by hand.
Code:
aps1|ijs/DESKJET_660;r=300x300;q=medium;c=full;p=letter;m=auto:\
:lp=:\
:rm=172.23.23.23:\
:rp=lp:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/aps1:\
:lf=/var/spool/lpd/aps1/log:\
:af=/var/spool/lpd/aps1/acct:\
:mx#0:\
:sh:
On that system I would just type:
Code:
lpr -Paps1 memo.pdf
and the file memo.pdf would print at the computer with ip address 172.23.23.23 -- you have to be in /etc/hosts.lpd on the system with the printer to do this. You can also set the PRINTER shell variable so you don't have to type the printer name... it will automatically assume the remote printer.
That is just a basis to get you started. Without knowing specifically how the system is setup I can't help you too much. My advice (if you don't administer the system) is to take a peek in /etc/printcap and see if they define any remote printers.