Print jobs hangs or stays in Print Queue
This instruction can be followed when you have problem with print jobs just seats in print queue and does not want to print or print after few hours. This problem has happened before with Whittard and Furniture court kingaroy customer site. Printing from windows is fine but when control try to print, it just seats in print queue and either takes long time to print or does not print at all. It happens to those print queue which does not use overlay and other stuff.
Try these options below before using the script solution.
- Restarting the cups
- enabling print queues
- Ping the printer
- Samba sharing if computer is not network printer
- Samba status check if computer is not network printer
- Push the job using localhost:631 ( use vnc for this)
- Unplug the power cord and network cable from printer and restart it again
- Try to test print from windows and see if the same issue with windows or not
Script Solution:
1. Copy the script below and put it in /etc/cups/interface. Give the same name for script as you use for print queue. Make sure it is executable.
#!/bin/bash
TEMP=/tmp/report_HO.$$ input=$TEMP.in output=$TEMP.out
if [ ! -z "$6" ]; then
- infile=$6
else
- infile=-;
fi
cat $infile > $input
filetype=/usr/bin/file $input
if [ "echo $filetype | grep PostScript" ]; then
- gs -q -sDEVICE=ljet4 -sPAPERSIZE=a4 -dNOPAUSE -dSAFER -dBATCH -sOutputFile=$output $input
else
if [ "echo $filetype | grep \"HP Printer Job Language data\"" -a "grep POSTSCRIPT $input" ]; then
- gs -q -sDEVICE=ljet4 -sPAPERSIZE=a4 -dNOPAUSE -dSAFER -dBATCH -sOutputFile=$output $input
- cp $input $output
fi
# For some reason, this printer insists on the PJL headers echo " ESC%-12345X@PJL JOB" echo @PJL SET HOLD=OFF echo @PJL ENTER LANGUAGE =PCL
# Print PCL data cat $output
# For some reason, this printer insists on the PJL footer echo "ESC%-12345X"
#rm -f $output
