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
03-31-2005 03:18 PM
03-31-2005 03:18 PM
script
I need to write a script which captures all the print jobs that are 3 days and older and send a notification to the concerned person.I
know lpstat -o output gives the print queue.I have not done much of scripting.So any help would be greatly appreciated.
thanks a bunch,
joe gibbs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 05:19 PM
03-31-2005 05:19 PM
Re: script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:01 PM
03-31-2005 11:01 PM
Re: script
attached a script I quickly put together,
it SHOULD do the job (hopefully).
I have added comments, so you can see whats happening. If you want to see more please comment out the remove steps and look at the *.lis files.
If the script provides some help please also have a look at:
http://forums1.itrc.hp.com/service/forums/helptips.do?#34
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:51 PM
03-31-2005 11:51 PM
Re: script
Look at
www.shelldorado.com
Nice site
find /var/spool/lp/request -name cA* -type f -mtime +3 -follow|while read line
do
echo host" "$(cat $line|grep H|cut -c2-128)
echo user" "$(cat $line|grep P|cut -c2-128)
echo req." "$(cat $line|grep J|cut -c2-128)
echo file" "$(cat $line|grep T|cut -c2-128)
done
Will show all 3 day equests
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 01:43 AM
04-01-2005 01:43 AM
Re: script
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=847518
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2005 07:00 PM
04-03-2005 07:00 PM
Re: script
did these answers help?
If the problem is resolved,please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#34 and close the thread, otherwise please update.
Thanks