Unix: print on printer on another machine (host)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Unix: print on printer on another machine (host)
# 1  
Old 11-10-2008
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  
Old 11-10-2008
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  
Old 11-11-2008
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  
Old 11-13-2008
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)
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Remote printer setup on solaris 10 host

Hi All, I am trying setup a remote printer on a solaris 10 server. The printer is online and working fine is solaris 8. I have added the pritner to /etc/hosts file and /etc/printers.conf ... I need to know followings: 1. How do I find the default pritner port on the old solaris machine... (0 Replies)
Discussion started by: mohullah
0 Replies

2. Shell Programming and Scripting

Host Machine not listed.

Hello everyone, I have a perl script to list all the host machines in my development environment. The script does various other tasks apart from listing the host names in an excel output. The problem is with the listing of host machines. The script lists all the host names except the host on which... (1 Reply)
Discussion started by: nmattam
1 Replies

3. Programming

Print from unix to hp printer attached on WINDOW

I try to send print on WINDOW XP Print server HP printer which generated in rmcobol on sco unix in following way to change the font, font style and font size but failed to succeed Forexmple in Cobol program I gives before the text which want to print in font style Bold FILLER PIC X(5) `^ (2 Replies)
Discussion started by: muzammilalikhan
2 Replies

4. UNIX for Advanced & Expert Users

Print from unix to hp printer attached on WINDOW

I try to send print spool on WINDOW XP Print server HP printer which generated in rmcobol on sco unix in following way to change the font, font style and font size but failed to succeed Forexmple in Cobol program I gives before the text which want to print in font style Bold FILLER PIC... (1 Reply)
Discussion started by: muzammilalikhan
1 Replies

5. SCO

Print from unix to hp printer attached on WINDOW

I try to send print spool on WINDOW XP Print server HP printer which generated in rmcobol on sco unix in following way to change the font, font style and font size but failed to succeed Forexmple in Cobol program I gives before the text which want to print in font style Bold FILLER PIC... (0 Replies)
Discussion started by: muzammilalikhan
0 Replies

6. UNIX Desktop Questions & Answers

wt is the exact procedure to share windows printer on linux machine to print from it

hi, what is the exact procedure to to set up printer on linux machine?The printer is a network hp 3050 printer configured on windows xp machine and i want to setup it on linux fc9 machine to print from it.is samba is compulsory for that? please give the exact procedure to do the same? (1 Reply)
Discussion started by: pankajd
1 Replies

7. HP-UX

Adding printer entry into host file

Hi relatively new to unix so sorry if this is a stupid question: How do i add a printer entry into the host file. I know how to add the printer using sam, but i am required to add the host file entry into /etc/hosts which i am unaware of how to do. Any help would be greatly appreciated. (2 Replies)
Discussion started by: Wade Gava
2 Replies

8. UNIX for Advanced & Expert Users

need UNIX command to print to Dell printer

i need a UNIX command to print to a Dell printer. i was successful printing to a HP printer using qprt -Pprinter, but it doesn't work for Dell printer. any suggestions??? much appreciated. (3 Replies)
Discussion started by: bones91
3 Replies

9. UNIX for Advanced & Expert Users

Configure SCO Unix to print on windows base XP printer

Hi, I have done this year ago, and now I need to do it again, but did not remember how I do it. I have a slip printer on a windows xp workstation and i need to print from SCO unix application to that printer. I try to create a remote printer but the only option available is unix, the other to... (0 Replies)
Discussion started by: comsiconsa
0 Replies
Login or Register to Ask a Question