This command prints local files to a remote printer.
TNHOME/usr/bin
ncprint [-c] [-nf] -s servername -q queuename [-N copies] -u username [{-p password|-P}] filename
-c |
Convert text files from UNIX to DOS format--for instance, convert line feeds to carriage return/line feeds. Use this option only if the remote server runs DOS; you need not use this option with most printers. |
-n |
Forbid banner printing. The print job of the ncprint command includes a banner page by default; this option suppresses the printing of the banner page. |
-f |
Prevent the remote server from sending the default form feed after the print job. |
-s servername |
Specify the name of the remote server. This does not necessarily coincide with the UNIX host name. |
-q queuename |
Specify the name of a print queue at servername. |
-u username |
Specify the UNIX account to access the remote queue. |
-N copies |
Specifies the number of copies to print. |
-p password |
Display username's password on the command line. |
-P |
Prompt for username's password. |
filename |
Specify the full or relative path to the local file you want to print. If you specify no file names, this command assumes standard input stdin. This option does not support wildcards. |
Use the command below to print four copies of the local file /tmp/that.doc to the print queue starblazer on the server flip, as user john with password abcdefgh. This command also prevents banner printing and post-printing form feeds.
ncprint -nf -s flip -q starblazer -N 4 -u john -p abcdefgh /tmp/that.doc |
Use the command below to print the local file this.doc from the current local directory and send the print job to the print queue nov4dot on the server nov4 as user root. This command does not display the password.
ncprint -s nov4 -q nov4dot -u root -P this.doc |
Use the command below to print 10 copies of the file rampage.doc in the directory tmp to the print queue village on server hi, as user mildred with password market:
ncprint -s hi -q village -N 10 -u mildred -p market /tmp/rampage.doc |