Sponsored Content
Top Forums UNIX for Advanced & Expert Users Unix: print on printer on another machine (host) Post 302257904 by jacco on Thursday 13th of November 2008 10:28:08 AM
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)
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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 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

7. 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

8. 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

9. 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
lpc(8)							      System Manager's Manual							    lpc(8)

NAME
lpc - Line printer control program SYNOPSIS
lpc [command [argument ...] ] DESCRIPTION
The lpc command is used by the system administrator to control the operation of the line printer system. For each line printer configured in the /etc/printcap file, the lpc command may be used for disabling or enabling a printer; disabling or enabling the printer spooling queue; rearranging the order of jobs in a spooling queue or finding the status of printers, their associated spooling queues, and the printer daemons. Without arguments, lpc prompts for commands from the standard input. When arguments are supplied, lpc interprets the first argument as a command and any remaining arguments as command parameters. The standard input may be redirected so that lpc reads commands from a file. The following is the list of recognized lpc commands: Prints a short description of each command specified in the argument list or, when no arguments are supplied, a list of the recognized commands. Prints a short description of each command specified in the argument list or, when no arguments are supplied, a list of the recognized commands. Terminates an active spooling daemon running on the local host, and then disables printing. This prevents new daemons from being started by lpr or lp for the specified printers. Removes any temporary files, data files, and control files that cannot be printed (files that do not form a complete printer job) from the specified printer queue(s) on the local machine. Turns the specified printer queues off. This prevents new printer jobs from being entered into the queue by lpr or lp. Turns the specified printer queue off, disables printing, and puts a message in the printer status file. The message does not need to be quoted because remaining arguments are treated the same as echo. The down command is normally used to take a printer down and let others know why. (The lpq command indicates that the printer is down and prints a status message.) Enables spooling on the local queue for the listed printers. This allows lpr or lp to put new jobs in the spool queue. Exit from lpc. Exit from lpc. Attempts to start a new printer daemon. This is useful when some abnormal condition causes the daemon to terminate unexpectedly and leave jobs in the queue. lpq reports that there is no daemon present when this condition occurs. When a daemon is stuck, you must first kill it and then restart. Enables printing and starts a spooling daemon for the listed printers. Displays the status of daemons and queues on the local machine. When printer name parameters are not supplied, information about all printers is provided. Stops a spooling daemon after the current job has completed and disables printing. Places jobs in the order listed at the top of the printer queue. Enables all printing and starts a new printer daemon. Cancels the effect of the down command. RESTRICTIONS
Normally, the clean subcommand allows you to remove all print jobs on the system or all jobs on a specified printer. However, clean does not remove the jobs in the spooling queues. Therefore, you should use the lprm command on a printer-by-printer basis to remove the jobs you want to eliminate. ERRORS
The following diagnostic messages are possible. Abbreviation matches more than one command. No match was found. Command may be executed by the superuser only. FILES
Specifies the command path. Specifies the printer description file. Specifies print spool directories. Specifies the lock file for queue control. RELATED INFORMATION
Commands: cancel(1), lp(1), lpd(8), lpr(1), lpq(1), lprm(1), lpstat(1). Files: printcap(4). delim off lpc(8)
All times are GMT -4. The time now is 03:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy