The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-13-2008
jacco jacco is offline
Registered User
  
 

Join Date: May 2008
Posts: 15
Try:
ssh user@remoteserver lpr < localfilename

It's called I/O redirection.
The local shell connects the local file 'localfilename' to the std-input filedescriptor of the ssh-command and ssh connects it's std-input to the std-input of the remote command (lpr)