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



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 07: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 07:50 AM
adding a host entry on another machine hcclnoodles Shell Programming and Scripting 4 10-27-2006 04:10 AM
need UNIX command to print to Dell printer bones91 UNIX for Advanced & Expert Users 3 07-05-2006 12:51 PM
Configure SCO Unix to print on windows base XP printer comsiconsa UNIX for Advanced & Expert Users 0 06-23-2005 11:42 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-10-2008
giugy giugy is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 1
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
  #2 (permalink)  
Old 11-10-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
Solutions:
1) You have nfs mount on the remote host:
you connect on the remote host and print as if local...
2) No NFS, but have an account: rcp or ftp (or ssh etc...) and print local
3) you are admin of the first box - add the printer as remote
4) as 3 but the printer has a jetdirect card: add the printer as network
  #3 (permalink)  
Old 11-11-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,861
If you tell us the OS (and OS version) of your system and the remote system that you want to print from, we can probably provide you with more detailed help.
  #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)
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0