- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: Print queues
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
10-20-2003 04:08 AM
10-20-2003 04:08 AM
Print queues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-20-2003 04:11 AM
10-20-2003 04:11 AM
Re: Print queues
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-20-2003 04:11 AM
10-20-2003 04:11 AM
Re: Print queues
# cancel job#
Alternatively:
cd /var/spoo/lp
ls FIFO, SCHEDLOCK
lpstat -r (* lp daemon running? *)
lpshut
rm FIFO, SCHEDLOCK, outputq, #lock
>outputq
>log
ps -ef | grep -i lp
kill -9 (* pid from ps -ef *)
lpsched -v
more log
lp -d printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-20-2003 04:22 AM
10-20-2003 04:22 AM
Re: Print queues
#lpstat -t
#cancel lpname-numberqueue
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-20-2003 04:48 AM
10-20-2003 04:48 AM
Re: Print queues
# lpshut
# lpstat -t
# cancel "queue_name-job#"
You must cancel each job until it's finally cleared. Then:
# lpsched
This way you ensure no new print jobs are sent to the server while you are cleaning it up.
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-20-2003 05:47 AM
10-20-2003 05:47 AM
Re: Print queues
When you get aprinter full of clutter, you can lpmove jobs to it to dispose of them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-20-2003 11:57 AM
10-20-2003 11:57 AM
Re: Print queues
cancel -e
That will delete all jobs on a queue.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-21-2003 12:33 AM
10-21-2003 12:33 AM
Re: Print queues
The mail part was removed to prevent /usr mail from getting rm'd if 2 people used it at once.
ErrSyntax()
{
echo "SYNTAX ERROR: cancelall printername"
exit 1
}
if [ $# -ne 1 ];
then
ErrSyntax
fi
### attempt to stop cancel mail to root
## cp -p /usr/bin/mail /usr/bin/mail.save
## echo "exit 0" > /usr/bin/mail
#
# RESTORE MAIL AT THE END OF SCRIPT
###
#DISABLE THE PRINTER
disable $1
#Stat the jobs to a file
lpstat -o$1|grep $1>/tmp/printjobs
#Cuts out the job
cut -d " " -f 1 /tmp/printjobs>/tmp/printjobs2
#ADD cancel to front of list
cat /tmp/printjobs2|sed 's/^/cancel.11.0 /'>/tmp/printmasscancel
chmod 777 /tmp/printmasscancel
/tmp/printmasscancel
#ENABLE THE PRINTER
enable $1
#CLEANUP
### RESTORE MAIL AT THE END OF SCRIPT
### PUT mail command back
## cp -p /usr/bin/mail.save /usr/bin/mail
rm /tmp/printjobs
rm /tmp/printjobs2
rm /tmp/printmasscancel
### cancel.11.0 is the real cancel program
### our cancel command is a sript to fix a local application call.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP