- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- printer spools
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:06 PM
10-10-2002 11:06 PM
I run an application that sends the output to particular printers. One of those printers has stop working and print jobs for that particular printer is pending.Could anyone please advise how can I forward those printer jobs to another printer name.
when I issue the lpstat -o or just lpstat I see the print jobs but I need someone to advise the steps to fwd them to another printer.
Thanks and appreciate your support.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:11 PM
10-10-2002 11:11 PM
Re: printer spools
From Unix side you can use
lpalt command.(can move a request at a time)
lpmove to move all requests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:13 PM
10-10-2002 11:13 PM
Re: printer spools
lpmove
You must shut down the spooler before (lpshut) and restart (lpsched).
Look at man lpmove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:35 PM
10-10-2002 11:35 PM
Re: printer spools
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:44 AM
10-11-2002 12:44 AM
Re: printer spools
ping to printer ip, if fails redirect the print to other printer.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 01:31 AM
10-11-2002 01:31 AM
Re: printer spools
The printer is networked. however, what I want to do is something like that.
Example:
echo "please enter the printer ID you want to transfer?\c"
read ANSW
lpalt $ANSW -dprn085
Now, is it possible to set a variable for the target printer so that the user can enter other printer number as desired?
appreciate your feed back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 02:40 AM
10-11-2002 02:40 AM
Re: printer spools
I mangled a printer selection script that I had toyed with a couple years ago to approximate what you're looking for. I didn't get to test it but I think you can make something out of it:
function moveit
{
lpalt $printer -dprn085
echo "**** please enter the printer ID you want to transfer? ****"
echo "****
PS3="Enter your printer selection"
select printer in "CRQMS1" "CRQMS2" "CRQMS3" "crlzr1" "CLASS_HPIII" "DHS_HP4SIMX
" "SP_HP4SIMX" "Exit"
do
case $printer in
"CRQMS1" )
printit
"CRQMS2" )
printit
"CRQMS3" )
printit
"crlzr1" )
printit
"CLASS_HPIII" )
printit
"DHS_HP4SIMX" )
printit
"SP_HP4SIMX" )
printit
"Exit" )
echo exiting...
exit 0;;
* )
echo "The printer you selected is not valid"
echo "Please try again"
esac
Hope this helps,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 02:45 AM
10-11-2002 02:45 AM
Re: printer spools
And the function should have a trailing } after it - got lost in the translation, I guess.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 02:49 AM
10-11-2002 02:49 AM
Re: printer spools
Sorry,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 03:13 AM
10-11-2002 03:13 AM
Re: printer spools
function moveit
{
lpalt $printer -d$outprinter
}
echo "**** please enter the printer ID you want to transfer?
****"
echo "****
PS3="Enter your printer selection"
select printer in "CRQMS1" "CRQMS2" "CRQMS3" "crlzr1"
"CLASS_HPIII" "DHS_HP4SIMX
" "SP_HP4SIMX" "Exit"
do
case $printer in
"CRQMS1" )
moveit ;;
"CRQMS2" )
moveit''
"CRQMS3" )
moveit ;;
"crlzr1" )
moveit ;;
"CLASS_HPIII" )
moveit ;;
"DHS_HP4SIMX" )
moveit ;;
"SP_HP4SIMX" )
moveit;;
"Exit" )
echo exiting...
exit 0;;
* )
echo "The printer you selected is not valid"
echo "Please try again"
esac
As before, you need to add the second case statement to determine the $outprinter, but that should be closer to functional.
(Nothing like debugging your lousy coding in public to build your ego, is there?)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 05:13 AM
10-11-2002 05:13 AM
Re: printer spools
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2005 04:52 AM
02-24-2005 04:52 AM