- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How to: On Queue completion send E-mail
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
07-31-2006 01:45 AM
07-31-2006 01:45 AM
How to: On Queue completion send E-mail
I have OpenVMS 7.3-2 O.S.
Currently I have the "Mail" utility working. My objective is to now have any of the queues tied up to the Mail utility. So whenever the queue is done I can get an e-mail saying the job is done.
I have been trying to go through sys management and documentation and few books on OpenVMS but I can't seem to figure out set it up in this manner. Can anyone please provide some insight into how I should go about it.
Nipun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 01:55 AM
07-31-2006 01:55 AM
Re: How to: On Queue completion send E-mail
there is no such functionality built into OpenVMS.
But you can easily write some DCL procedure to do that:
- set up your desired queues with /RETAIN=ALL. This will retain all completed or aborted jobs in the queue.
- write a DCL procedure using the F$GETQUI lexical functions to scan those queues and look for jobs in the RETAINED state. Extract the job information, send mail and delete the retained job entry from the queue.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 02:16 AM
07-31-2006 02:16 AM
Re: How to: On Queue completion send E-mail
there is a nice little example in the OpenVMS DCL Dictionary manual, which uses F$GETQUI to delete retained jobs from a queue (see example #5):
http://h71000.www7.hp.com/doc/82FINAL/9996/9996pro_101.html
With a little bit of editing, you should be able to make this example fit your needs. Just add your MAIL command before the DELETE/ENTRY command...
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 03:07 PM
07-31-2006 03:07 PM
Re: How to: On Queue completion send E-mail
I'm not sure what you mean by "whenever the queue is done". Perhaps you mean "when a batch job completes"?
You could do this externally, as Volker has suggested, but I think it's probably simpler to just add a final line to your batch job:
$ MAIL/SUBJECT="This job complete" NL: NIPUN
You may also want to look at SUBMIT/NOTIFY. This will send you a broadcast message (but obviously only if you're logged in).
Also note that a batch job can consist of multiple files to be executed, so if you have a procedure called NOTIFY.COM containing the MAIL command, you can add it to the end of any procedure without editing, for example:
$ SUBMIT MYJOB,NOTIFY
will execute MYJOB.COM followed by NOTIFY.COM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 03:29 PM
07-31-2006 03:29 PM