1838219 Members
4488 Online
110125 Solutions
New Discussion

move print job HP-UX

 
SOLVED
Go to solution
tom quach_1
Super Advisor

move print job HP-UX

Hi all,
i am using HP-UX 11i v1
users request to be able to move their printjobs
from one printer to the others, that was the way it worked in HP-3000. But in HP-9000 in other for them to move their printjobs, I need to shut down the printer spooler and that will affect everyone else.
Is there a work around for this situation that i don't have to shutdown the spooler.

Thanks in advance.
Tom
7 REPLIES 7
Peter Nikitka
Honored Contributor

Re: move print job HP-UX

Hi,

look at the manpage of 'lpmove' - it contains conditions for moving print requests between printers.
If they are not met, the jobs cannot be moved.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Peter Godron
Honored Contributor

Re: move print job HP-UX

Tom,
you could get the users to do this themselves by modifying the answers in:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=979234

This thread may help solve your immediate problem:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=146794
Geoff Wild
Honored Contributor

Re: move print job HP-UX

Right from the man page:

lpmove Moves requests that were queued by lp(1) between LP destinations. This command can be used only when lpsched is not running.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: move print job HP-UX

The lp spooler in HP-UX is archaic when compared to MPE (HP-3000) or other mainframe style OS's. Almost every change in the spooler's configuration requires a complete spooler shutdown with the side effect of restarting all partially completed jobs from the beginning. The only workaround is to look at commercial spooler replacement products. Note that some spooler products may be cumbersome to manage or not work well on HP-UX. A good way to determine good support for HP-UX is to ask if it work on 11.23. If the vendor asks "What is 11.23?", look for a different vendor.


Bill Hassell, sysadmin
tom quach_1
Super Advisor

Re: move print job HP-UX

Dear all
Thank you for your input.
Peter, i could not open the second link, would you please re-post the link.
...and that is what i was afraid of shutdown the spooler.
Does anyone know " a commercial spooler replacement products" for HP-UX 11i v1.
Regards,
Tom
Peter Godron
Honored Contributor
Solution

Re: move print job HP-UX

Tom,
as provided in the link you can't get to:
By James Marrion

#!/bin/sh
#
# LPMOVE6.SH Shell script to use the lpalt command to move a group
# of files from one print que to another.
#
# Arguements Two(2) are required, you need the original printer
# and the new destination printer name.
#
#
# lpmove6.sh , 1.2
# 09/14/00 , 16:25:27
#
# 08/22/00 JAM Sr
#==================================================================
==========


ORG_PRTR=6
NEW_PRTR=va22_hp21

# create the file of print outputs
while [ 0 ]
do
echo `date` Checking the $ORG_PRTR queue for print request
HR=`date +%H`
if [ $HR -gt 17 ]; then
exit
else
lpstat -o${ORG_PRTR} |grep ^${ORG_PRTR} |awk '{print $1}' > /tmp/prt.log
if [ -s /tmp/prt.log ]; then
for i in `cat /tmp/prt.log`
do
echo $i
lpalt ${i} -d${NEW_PRTR}
done
fi
sleep 300
fi
done

rm /tmp/prt.log
tom quach_1
Super Advisor

Re: move print job HP-UX

Peter,

Thank you very much for the script
that is what i am looking for. actually i got error when running this script, will take care it later.

the command lpalt is what i need. we are using this command all along but never realize it.

Thanks again for your help.
Tom