O'Reilly logo

Solaris™ 9 System Administrator Exam Cram™ 2 (Exams 310-014 and 310-015) by Darrell Ambro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Print Commands

Print commands are used to start, stop, and configure the LP Print Service and submit files to be printed.

Stopping and Starting the LP Print Service

The lpsched(1M) command is used to start the LP Print Service, whereas the lpshut(1M) command is used to stop the service. Both of these commands are symbolically linked to the /usr/lib directory. An alternative method is to use the /etc/init.d/lp run control (rc) script, which calls the lpsched and lpshut commands. The following listing shows using both methods for stopping and starting the LP Print Service:

 # /usr/lib/lpshut Print services stopped. # /etc/init.d/lp start Print services started. # /etc/init.d/lp stop Print services stopped. # /usr/lib/lpsched Print services started. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required