To print directly from the remote server to a local printer.

Hello Guys

Is there any way To print a file directly from the remote server to a local printer..

?

yes.

ssh remote_server cat file.txt|lpr

or setup cups/lpd and setup a print queue. and use the standard print utilities on the remote server

I am logged in that server ....and giving the command cat file.txt|lpr and getting the message

Failed to contact service for lp: not-found

Please advice

Hi, Were you able to resolve it ?