![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get the IP address / Host name of client machine | MVL | SUN Solaris | 6 | 10-01-2008 08:43 AM |
| Print to Any Windows Printer from DOS, Unix, Linux, legacy ... - Press World (press r | iBot | UNIX and Linux RSS News | 0 | 07-02-2007 08:50 AM |
| adding a host entry on another machine | hcclnoodles | Shell Programming and Scripting | 4 | 10-27-2006 05:10 AM |
| need UNIX command to print to Dell printer | bones91 | UNIX for Advanced & Expert Users | 3 | 07-05-2006 01:51 PM |
| Configure SCO Unix to print on windows base XP printer | comsiconsa | UNIX for Advanced & Expert Users | 0 | 06-23-2005 12:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Unix: print on printer on another machine (host)
Hi all,sorry for my english but i don't speak it very well.
I have a problem, i need to print a file from a unix machine to a printer on another unix machine (with another host). I think that it's possible making a connection with telnet to this machine and after to print on the machine in wich i'm connected. But i need to know if is possible to made this print (on another host machine) with only a command....maybe like the lpr command with an option for the host and the printer name. I see that for the lpr there is only the parameter -P for the name on the printer...is there a command (or a parameter for lpr,lp.....) to print on a printer on a different machine with a different host??? Thanks so much for help. Bye |
|
||||
|
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) |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|