Hello
I need to update my DB twice a day.
So I started to do some experimenting on cron but it just doesn't work for me.
I tried it on my PC (FC3) and server (CentOS 3) but the results are the same.
My script looks like this
Quote:
#!/bin/sh
date > output
echo testing testeeing testening >> output
date >> output
|
By right it should output the results into a txt file (output) right.
But it doesn't.
I have run it on a terminal and the script woks fine.
I even tried it in an at job, it also works.
But for cron no results were found.
My "crontab -l" returns
Quote:
01 01 * * * /home/intuition/insert.sh
|
It should be running everyday at 0101 right. But it didn't
My /var/log/cron looks like this
Quote:
Jul 27 00:59:16 anima crontab[2925]: (root) LIST (root)
Jul 27 00:59:54 anima crontab[2929]: (root) REPLACE (root)
Jul 27 00:59:58 anima crontab[2930]: (root) LIST (root)
Jul 27 01:00:01 anima crond[1988]: (root) RELOAD (cron/root)
Jul 27 01:01:01 anima crond[2941]: (root) CMD (/home/intuition/insert.sh)
|
This is what I did
1. I type "crontab -e" and entered
01 01 * * * /home/intuition/insert.sh
2. I then entered ":wq" to write and quit the editor
Did I do something wrong?
I have even tried
crontab -l > mycron
then
vi mycron and entered 10 01 * * * /home/intuition/insert.sh
finally
crontab mycron
when 0110 come still no results
Please give some insights, please ...