Computer Science Fundamentals Operating Systems Subjective
Mar 12, 2013

How does a user submit a print job in UNIX system?

 

Detailed Explanation

lp and lpr command are used specified file or standard input to send to the printer to print. Each job is given a unique request-id that can be used to follow or cancel the job while it’s in the queue.
Syntax--
     lp [options] filename
     lpr [options] filename
Common Options
     lp         lpr         function
     -n number     -#number     number of copies
      -t title         -Ttitle         title for job
     -d destination     -Pprinter     printer name
     -c         (default)     copy file to queue before printing
     (default)    -s         don’t copy file to queue before printing
     -o option             additional options
Examples
To print the file ssh.ps:
     <prompt>lp ssh.ps
     request id is lp-153 (1 file(s))
This submits the job to the queue for the default printer, lp, with the request-id lp-153.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback