- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disable mailing of at command results
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-19-2000 06:09 AM
07-19-2000 06:09 AM
minutes. The shells log the results we need. It seems like by default the
at command unix mails results also. Is there a way to "turn off" the at
command's mailing feature? I noticed in the at command file (with atjobs)
there was a line :notify by mail:no.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 06:15 AM
07-19-2000 06:15 AM
Re: Disable mailing of at command results
stdout/stderr are mailed to the user unless it's redirected elsewhere from within the job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 06:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 06:21 AM
07-19-2000 06:21 AM
Re: Disable mailing of at command results
Unless redirected elsewhere within the job, standard output and standard error produced by the job are automatically mailed to the user as well.
The Posix/Korn shell command 'exec' can be used within the script to redirect standard output and error e.g.
exec 1>/dev/null 2>&1
Hope this helps,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 06:22 AM
07-19-2000 06:22 AM
Re: Disable mailing of at command results
Set the user in /var/adm/cron/at.deny to restrict the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2000 06:44 AM
07-21-2000 06:44 AM
Re: Disable mailing of at command results
For example if the program being executed, for some reason, has the wrong permissions and you have the stderr/stdout going to /dev/null, you'd never know that the program was not running. Of course in your scripts you have detailed logging and know when things are running correctly. :)
i.e
program >/dev/null 2>&1
Hope this helps.