Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

openSuse, not running the cron job

$
0
0
I have created a cron job in the /etc/cron.d/dispatchingEmail_I

content of the dispatchingEmail_I is:
Code:

54 19 * * * root /home/harbir/project/L_ocalRepository/smallworks/maildispatcher.sh >> /tmp/try1.log
The permissions of the above cron file are the following:

Code:

-rw-r--r--  1 root root    84 Sep 11 19:52 dispatchingEmail_I
when I check /var/log/messages I can see an entry

Code:

2014-09-11T19:54:01.761269+10:00 linux-gn77-PC /USR/SBIN/CRON[4109]: (root) CMD (/home/harbir/project/L_ocalRepository/smallworks/maildispatcher.sh)
which tells me that the command has run, but no email has been received. The log file gets created, but its empty.
where as when I run the script by itself, the email is received.
the permissions of the file maildispatcher.sh are the following:
Code:

-rwxrwx---  1 harbir users      621 Sep 10 06:33 maildispatcher.sh
The two reasons that tell me that my script is not getting run via cron job are:
1. log is empty
2. script fires up a java program that updates a file before sending an email. The file is not getting updated.

when I run a simple command like
Code:

50 05 * * * root echo checking >>/tmp/try2.log
the cronjob works and has contents in the log file.
can anyone suggest some changes that can be tried?

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>