Printing Services


Printing

Commands to print files from UNIX:

Printing Format Types

Output can be printed out in various different formats. The following table shows
the format option and the command used to print. "filename" is the name of the file to be printed.
 
 

    Option                Print Command
 
  drilled paper     qpr -q smips -f drilled filename
  undrilled         qpr -q smips filename 
  landscape         enscript -r -p - filename | qpr -q smips
  duplex            qpr -q smips filename 
  simplex           qpr -q smips -S filename 
  two up            enscript -2r -p - filename| qpr -q smips


  Note:  Enscript works only on text files.


Laser (Postscript)

To print ASCII text or Postscript files on a laser printer use the qpr command with the -q option
to specify a laser printing queue followed by the filename:
 
             qpr -q queuename filename

For example, to print a copy of a file "program.p" on a Smith Hall laser printer, you would type:
  

            qpr -q smips program.p

will send a specified file "filename" to be printed on the Smith Hall Laser printers.

 To send an ASCII text file to be printed on one of the default line printers in Smith Hall,
use the qpr command followed by the file name.

 For example:

             qpr filename

NOTE: Postscript files cannot be printed on lineprinters.


HP DesignJet 5500 Color Printer

See DesignJet 5500


Printing Queue names, Device types and names and their Locations

LOCATION DEVICE NAME QUEUE NAME
     
006 Smith Hall HP9050 & HP8000 smips
220 Townsend Hall HP 5si tnsps
101D Pearson Hall HP4250 prsps


enscript

The enscript command reads in plain text files, converts them to PostScript language, and can output put them to a printer or file. Fonts, headings, limited formatting options and spooling options may be specified.

 Command usage:

           enscript [options] filename

where "filename" is the name of the file to be converted.

Useful Options: -#<number> Causes "number" of copies of the ouput to be printed.


 -1  Sets output in 1 column (the default)
 -2 Sets output in 2 columns
 -B Omits page headings
 -c  cuts lines longer then the page width (Normally lines are wrapped)
 -f <font>Sets the font type to be used. Courier10 is the default Courier7 is used if in two columns or rotated.
 -F <font>Sets the font to be used in page headings.
 -G Prints page headings, dates & page number to be printed
 -L <number>Sets the maximum number of lines per page
 -m Causes the printer daemon to send mail upon job completion
 -n <number>Causes "number" of copies of the output to be printed
 -p <name>Saves converted file to a file name "name"
-P Sends the formatted file to the specified queuename. For example: -Psmips or -Pwhlps
 -r Rotates the output 90 degrees(landscape)
 -R Don't rotate (Portrait), the default
 -S <feature>Specifies a printer feature such as manual feed or duplex. For example: -Sduplex or -Smanualfeed
 -t Sets the job title for use on the burst page
 -v<n> Output is set in "n" number of columns.

For example:

enscript -Br -n4 -fPalatino-Roman10 -Ssimplex -Psmips -pdata.ps data.txt

Formats a file "data.txt" without special headings, rotates it 90 degrees
to print in landscape format, specifes 4 copies to be outputted, changes the
font type to Palatino-Roman10, outputs the file in simplex(one-sided) format,
sends the formatted file to be printed at the Smith Hall laser printers, and
saves the converted file to a file named "data.ps"


qdev

The qdev command is used to display the status of printer devices.
The command must be executed from strauss in order to view the status.

Command usage:

             qdev

An example of qdev:

      smips6         white    Q16249.1927     29916 ("map.ps" 43% of 73k)
      smips7         drilled  (Idle)
      nrkps1         white    Q02948.113      28906 (accounting)
      tnsps1         white    Q00003.13397    28804 (Syncing)
      whlps1         white    (Idle)
      colps1         white    (Idle)
      duplp2         white     Disabled (Idle)


qpr & kpr

The following commands are used to send files to printers on the central UNIX systems.
 
 

qpr

The qpr command is the main print command for the UNIX systems and the most versatile. Command usage:

            qpr [options] filename
Useful Options:

 -c<number> Specify "number" of copies to be printed
 -f<formtype> Print the file as a specified "formtype"
The default formtype is "white" which prints files on undrilled laser paper. Other useful forms types are "drilled" and "trans" (for transparency).
 -m Causes a mail message to be sent to your account upon print completion of your file
-q<queuename> Allows a specific queue to be specified. The queuename for the Smith Hall PostScript printers is "smips". (See Printing Topic: Printing Queue names, Device types and names and their Locations for more information.
For Example:
qpr -q smips -c7 -m -f drilled test.data

  
sends the file named "test.data" to a Smith Hall laser printer with drilled paper 
(3-hole punched), prints 7 copies, and will notify the sender with an e-mail message 
stating the print job has finished. For more information on qpr, consult the manual pages
on any UNIX system. The manual pages on specific topics can be viewed by typing the following
command:
                man topic

To view the man pages on qpr type:

                man qpr

kpr: Printing UNIX files on your PC's printer

The UNIX "kpr" command allows a person to print a file from their UNIX account to a printer attached to their PC. User Services staff have tried the kpr command successfully with SSH Secure Shell which can be downloaded from the University's software distribution page.(http://www.udel.edu/udeploy)

 The syntax for the command is :

kpr

This command can be used to print from a UNIX account, logged in via SSH, to an attached Macintosh or Windows networked printer.
  

 Command usage:
 

kpr my_unix_filename

where "my_unix_filename" is the name of a TEXT file accessible from your UNIX account. Files that contain more than just text might also work, but could cause your computer to hang.

DISCLAIMER

The kpr command is NOT officially supported by Information Technologies ("use at your own risk"), but offered as a public service for those who want to try it. There is some chance that using it could lock up your PC, requiring you to reboot the system.
 
ADDITIONAL HELP

If the UNIX system does not seem to recognize the kpr command, contact User Services for assistance by calling the Help Desk at 831-6000.


qstat

The qstat command is used to display printing queue information. This includes which queues files have been sent to and what files are currently printing on specific printers. The qstat command can only be executed from strauss in order to actual printing queue status.

The command qstat -l will show the printer queuename, request id userid, filename, priority number, file size, and time submitted.

 Command usage:

qstat -l



University of Delaware   •   Newark, DE 19716   •   USA   •   Phone: (302) 831-6000   •   © 2008