- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: if anyone cancel a lp print job I receive an e...
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
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
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
тАО01-23-2004 12:06 AM
тАО01-23-2004 12:06 AM
if anyone cancel a lp print job I receive an email
Whenever an user cancels ( cancel pr1-1234 p.e.) a lp job, I receive an email like:
your printer request pr1-1234 was cancelled by root
But this message doesn't have a correct EOF (or something like that) and next email messages get corrupted by this one.
How can I get "cancel" command to NOT send this annoying message??
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2004 12:09 AM
тАО01-23-2004 12:09 AM
Re: if anyone cancel a lp print job I receive an email
Don't quote me on this though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2004 02:09 AM
тАО01-23-2004 02:09 AM
Re: if anyone cancel a lp print job I receive an email
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2004 02:15 AM
тАО01-23-2004 02:15 AM
Re: if anyone cancel a lp print job I receive an email
Obviously someone or some piece of software configured this and you should be able to trace it, look at logs and figure out why its happening.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2004 02:18 AM
тАО01-23-2004 02:18 AM
Re: if anyone cancel a lp print job I receive an email
It's not configurable. As Kent mentioned, you can filter the messages out. Sendmail seems to be the best in discarding the messages.
There is an enhancement request to make this user configurable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2004 07:10 AM
тАО02-10-2004 07:10 AM
Re: if anyone cancel a lp print job I receive an email
Here'e my completed shell script which replaces /usr/bin/mail. I renamed the original mail client to mail0. Also made sure that the permissions and owner/group were set the way /usr/bin/mail was before tampering with it. Seems to work pretty well.
-----------------------------
#!/usr/bin/sh
#
# DESCRIPTION:
# Wrapper for the 'mail' client (renamed to 'mail0') to avoid sending mail
# messages to the end users mailbox when canceling their print jobs.
if ps -p ${PPID}|grep -i cancel >/dev/null ;
then exit 0;
fi
/usr/bin/mail0 $*
-----------------------------
Hope it helps anyone out there!
/dev/null