- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cron email destination
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
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
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-09-2001 08:36 AM
тАО07-09-2001 08:36 AM
Is there a way to do this?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 08:46 AM
тАО07-09-2001 08:46 AM
Re: Cron email destination
This will allow everyone to read write and execute.
chmod 777 file name
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 08:47 AM
тАО07-09-2001 08:47 AM
Re: Cron email destination
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 08:49 AM
тАО07-09-2001 08:49 AM
Re: Cron email destination
would this work using a .forward file?
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 09:04 AM
тАО07-09-2001 09:04 AM
Re: Cron email destination
You can create a ".forward" file under the root user (where your processes run) and forward the resulting email to the control of another user who could then read and/or delete the mail.
Simply create a .forward file with the user's name in it and put it in the home directory ("/" for root, usually). It need only be readable by its owner.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 09:09 AM
тАО07-09-2001 09:09 AM
Re: Cron email destination
Everyone would have to edit or delete their own file.But they will have all the same info.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 09:54 AM
тАО07-09-2001 09:54 AM
Re: Cron email destination
Other than that I would do what someone already mentioned - have the job send the mail to appropriate parties in the first place.
By the way, since people come and go, I rarely hard-code usernames into scripts for email. Instead hard-code an alias and put the users in your aliases file.
For example, in /etc/mail/aliases:
backupadm: user1,user2
Then your scripts would send mail to backupadm.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 11:30 AM
тАО07-09-2001 11:30 AM
Re: Cron email destination
how about having more cron-users? Only possible if root-privileges are not required though.
BTW I fully agree with Steve Martin: avoid having email-addresses scattered around your system: use aliases! People don't only come and go, sometimes email addresses have to be changed due to company policy, reorganization, take-over, ... . Bonus points here ;)
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2001 10:33 PM
тАО07-09-2001 10:33 PM
Re: Cron email destination
Please read Fred Martin instead of "Steve" Martin
mea culpa
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2001 09:03 AM
тАО07-10-2001 09:03 AM
SolutionYou can try this one too. Let the cron job create a temporary say "temp_file" file and update it for all the std output messages by using the redirector >>. Then at the end of the script u can use the mail option to mail it to as many user you want. Use this at the end of the script being run as cron job
mailx -s Subject mail-address < temp_file
this way you won't redirect all the mails addressed to root to the specified user. If you crate a .forward file in the root home directory you end up forwarding all root mails to the user(s) specified in the .forward file. To forward the cronjob output to multiple users you can repete the mailx line with another mai_address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2001 09:20 AM
тАО07-10-2001 09:20 AM
Re: Cron email destination
Thanks again, Dewy