Cron not working
Hello All,
I have been trying to schedule a task using cron only to realise that it is not working. Code:
$ ps -ef | grep cron Please any advise However, when i queried the log in /var/log i got Code:
# tail -10 /var/log/cron |
Check the permissions on directory "/xyz" and on the file /xyz/cron_work.log.
|
As per Pingu; generally non-root users cannot write to '/' level dirs.
|
Hi Chrism01,Pingu
The user seyiisq has write to that directory.He even owns the file seyiisq:computername:/xyz>ls -lrt cron_work.log -rw-r--r-- 1 seyiisq dba 0 Dec 29 13:10 cron_work.log Please, can anyone advise |
I did the cron in seyiisq directory and still had the same result
seyiisq:compoutername:/xyz/seyiisq>crontab -l * * * * * /usr/bin/date >> /xyz/seyiisq/cron_work.log seyiisq:computername:/xyz/seyiisq>ls -lrt cron_work.log -rw-rw-rw- 1 seyiisq dba 0 Dec 29 13:10 cron_work.log After few minutes of monitoring the file cron_work.log remains empty. |
Hello All,
This as been resolved. Thanks to all who responded |
Would you mind telling us how, always good to post solutions.
Also please mark thread "solved". |
I realise that there is no such as /usr/bin/date but /bin/date.
It was a silly mistake on my part |
Hello All,
I created my own shell script which ran manually but very difficult using cron. I have been battling with it all day. */10 * * * * /full/path/salary.sh pls can anyone advise |
All times are GMT -5. The time now is 07:39 AM. |