Mail is not sent by cron daemon


 
Thread Tools Search this Thread
Operating Systems Solaris Mail is not sent by cron daemon
# 1  
Old 08-01-2008
Mail is not sent by cron daemon

Hello All,

In SunOS 10, I have some cron jobs and it is running fine but the cron job outputs are not mailing to any acount of the system.

In other OS, we have option like MAILTO variable or /dev/null to disable but in Sun I have no idea how it is disabled by default and how do I enable.
Please help me.

Thank you.
# 2  
Old 08-01-2008
clarify these: "acount of the system"
Are you now referring to the script or he cron entry? pls be specific bro Smilie
# 3  
Old 08-01-2008
checked /var/cron/log file for errors ?
# 4  
Old 08-01-2008
MySQL

Solaris does NOT use the MAILTO variable. You can use the mail command to send E-mail output of cron jobs. For example, to mail the output of a script to a user, you can format the cron command similarly to the following (keeping everything on a single line in your crontab).

* * * * * /path-to/yourscript | /bin/mail someone@mydomain.com

or write a to run your job and send an email, see the example in my below comment.

===========================================

SUPERVISOR="root, you@somewhere"
....
mail ${SUPERVISOR} < $LOGFILE


make your crontable looks like:

5 * * * * /path-to/yourscript >/dev/null 2>&1

ave a look at this nice cron FAQ:
Unix FAQ - Cron
# 5  
Old 08-01-2008
What I want to say is "users of the system" i.e by default specific cron job owner should receive email or atleast the root if there is any in error in system/cron daemon.
# 6  
Old 08-01-2008
Smilie Yup.. I guessed right.. see my comments Smilie
# 7  
Old 08-01-2008
Sorrry for the confusion. I elaborate my problem as below:
If I run a script through cron then cron should send a output and error messages of the script by default to the owner of the cron job that is not working in my system.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

cron daemon name

Hi All, Please tell me which daemon is responsible for start and stop the crontab. Please tell me the location where it resides in Linux platform. Sindu. (2 Replies)
Discussion started by: indira_s
2 Replies

2. UNIX for Dummies Questions & Answers

Cron Daemon and alert

I am not system admin on Unix or Linux server. I am Oracle DBA to work on these operating systems. On our Oracle Linux 5.8 box, it always pump up the alert message like this: Cron Daemon /bin/sh: /opt/oracle/product/middleware/agent11g/ccr/bin/emCCR: No such file or directory Please help... (2 Replies)
Discussion started by: duke0001
2 Replies

3. Shell Programming and Scripting

Cron jobs and mail

Hi, I am new to this mail concept and cran jobs,i have given with a task to send a mail for every one hour from unix to my outlook by checking some sanitry checks kindly look the below queires and help me in this 1.)How to send a mail from unix box to outlook. 2.)I assigned to check a... (4 Replies)
Discussion started by: thelakbe
4 Replies

4. Solaris

no mail after cron

Hi All, My current version is 5.10 Generic_127127-11, I'm not getting mails after cron for single os user where as for others users im getting mail after cron. i've not found any mail file in /var/mail for that particular user, and i have created a new mail file. but no luck please... (1 Reply)
Discussion started by: adeel_dba
1 Replies

5. UNIX for Dummies Questions & Answers

how execute/visit a site using the cron daemon?

hi, i need to execute/visit a site to check if the site is up or not i have a server that have cron shedule that can execute a php file now how can i execute/visite a site using the same way as i execute a file? thanks a lot for your help :) (1 Reply)
Discussion started by: jasonx22
1 Replies

6. HP-UX

mail daemon

during boot, the mail daeman stalls as much as 20 minutes between busy and OK, where do I look to fix this problem? (1 Reply)
Discussion started by: dave_m
1 Replies

7. SCO

Stoping & starting the cron daemon

Hi We are running SCO ver 5. Recently the cron daemon stopped running on its own. How do I find out why? How do I restart/stop it? I typed cron but it didn't work. Will rebooting it do the trick or can I manually start and stop the cron daemon? Please help. Thanks & Regards. (0 Replies)
Discussion started by: othman
0 Replies

8. UNIX for Dummies Questions & Answers

Process mail using cron

I am looking for information on how to process mail using a cron job. The email server is a hosted ISP, so I simply have a POP connection to the mailbox. Specifically, I want to fire a cron job at {x} time and have pine, mail, mailx, or some other suitable mail client utility process the... (1 Reply)
Discussion started by: EOD
1 Replies

9. UNIX for Dummies Questions & Answers

Cron daemon

I ve a problem with the cron daemon. i ve a process that sends many mail, and full my /var FS i don t want to write a script that would clean its mails i want to know if it would be possible to stop the cron daemon sending mails only for that specific process. Thanks !:D (3 Replies)
Discussion started by: karine
3 Replies

10. UNIX for Dummies Questions & Answers

Cron Daemon

Hey all, I'm running Mandrake 7.2 with several of the development/server tools loaded and operating. One problem I'm having is that I keep getting emails from the "Cron Daemon". They all say: touch: /var/log/news/nntpsend.log: Permission denied chmod: same as above /usr/bin/nntpsend: ... (2 Replies)
Discussion started by: ober5861
2 Replies
Login or Register to Ask a Question