- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Unable to email from a cron entry
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
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
тАО09-14-2003 07:10 PM
тАО09-14-2003 07:10 PM
Unable to email from a cron entry
The same script runs on some other HP-UX systems and works fine.
The recipient of the email has never received an email from my Tru64 system...
In the process of investigating the problem I found that you cannot email from the crontab (I only tried root crontab) as per the following:
* * * * * /usr/bin/mailx -s "Testing from hostname" email@domain.com < /tmp/message > /tmp/err.log 2>&1
No error messages are output to the err.log.
The command works fine from the command prompt...
Is anyone aware of why this doesn't work or if it is a known problem with a workaround/solution?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 01:31 AM
тАО09-15-2003 01:31 AM
Re: Unable to email from a cron entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 06:44 AM
тАО09-15-2003 06:44 AM
Re: Unable to email from a cron entry
have you checked mail?
Maybe it cannot execute the mailx command due to reasons other than the script.
Otherwise it should work, I have used your command on a host of us and it worked.
Also check /var/adm/syslog.dated/current/mail.log
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 09:46 PM
тАО09-15-2003 09:46 PM
Re: Unable to email from a cron entry
Anyway I've moved the script to the adm users crontab and it now works fine, so it's as good as fixed.
Weird...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 10:09 PM
тАО09-15-2003 10:09 PM
Re: Unable to email from a cron entry
/var/adm/syslog.dated/current/mail.log appears to indicate that the emails are being accepted for delivery but they simply dissapear somewhere along the line. They do not show up in our mail server's mailqueue either.
Anyway I've moved the script to the adm users crontab and it now works fine, so it's as good as fixed.
Weird...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 10:30 PM
тАО09-15-2003 10:30 PM
Re: Unable to email from a cron entry
btw. checking permissions was my idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 06:42 AM
тАО09-16-2003 06:42 AM
Re: Unable to email from a cron entry
this doesn??t make much sense to me, why it should work with adm and not root!.
Is the crontrab user really the only thing, you changed?
Hi Ralf,
I think, everyone should get points as a reward for the help they provide for other users. I think however, that a HP employee has a somewhat unfair advantage. He is sitting at the source, where all troubles are reported, all documentation is accessible, more than to the public.
Since this is not the first time, you are complaining about not receiving proper recognition, one might get the idea, life and death depends on it. Cool down. ;-) You already have more points than the rest combined in the tru unix forum! After all, it should be a place to share and have fun! Don??t you think too?
best regards,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 11:03 PM
тАО09-16-2003 11:03 PM
Re: Unable to email from a cron entry
I also spent much time outside of the working hours to moderate this forum and to find answers for the forum members.
It is not my goal that I must answer any question here. There are also other HP members in this forum, yes I have a lot of points but I've worked hard to get it and a lot of answers with a final solution were not voted. That is ok, but it is really unfair to repeat the answer of other persons and not voting for the original answer.
regards
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2003 03:37 AM
тАО09-17-2003 03:37 AM
Re: Unable to email from a cron entry
I see your point. User, who get valuable advice should at least acknowledge this by giving the credits to whom they are due. I wonder, whether people don??t pay much attention, to what other people write, otherwise they would not have just repeated, what is already said. In this case I am not sure, for which part I got the 3 points, but since you already mentioned permission issues, I avoided mentioning them again.
Do I understand you correctly, that participating here is a part of your work, you normally would prefer not to do? I do hope not. But thank you for sharing your thoughts about this matter and for your efforts to contibute to this worthy cause.
best regards,
Michael Schulte
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2003 04:11 AM
тАО09-17-2003 04:11 AM
Re: Unable to email from a cron entry
moderating the Tru64 forum is part of my work but it is not part of my work answering any technical question.
There are also other HP forum moderators and support staff around spending time to answer questions here in the forum.
regards
Ralf