Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Clearing a print queue


      One of my users tried printing a binary file through one of our
line printers.    Now the printer is munged up.   It will print one line of what
looks like binary code and then shut itself off.
     The server sending the print job is running Solaris.   I deleted the files
from /var/spool/print   hoping this would kill it.   But the files have shrunk
to -1 bytes and the printer is still stuck.
        Can anyone help me to get the jobs out of the gueue and
clear the printer?
0
bwsaul
Asked:
bwsaul
1 Solution
 
dsernaCommented:
Here are some things that you can try:

Stop printing services, remove the queue files, and then restart the print service:

#  /usr/sbin/lpshut
#  cd /var/spool/lp
#  pwd  (verify the directory)
#  rm -r requests tmp temp fifos
#  rm SCHEDLOCK            (if it exists)
#  cd /var/spool/print
#  rm  *                   (remove all files except .seq file)
#  /usr/lib/lpsched         (restart the schedular)

That should do the trick.

Hope that helps. :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now