Results 1 to 3 of 3
What am I doing wrong?
I'm logged on as admin, one pay grade below God (who wishes she were as powerful as root). I want to run, under my login, ...
- 04-21-2009 #1
cron weirdity
What am I doing wrong?
I'm logged on as admin, one pay grade below God (who wishes she were as powerful as root). I want to run, under my login, a script every Monday @ 04:00. The script is in my home directory, I own it, and the permissions are wide open (777). I own all of the directories and files used by the script, and as above, the permissions are all 777.
in bash, I type crontab -e
bash returns "no crontab for admin - using an empty one"
then bash opens crontab
in crontab, I type
esc
i
cron returns " --- Insert --- "
I enter
0 4 * * 1 /home/.users/112/admin/scripts/backall
esc
:w
crontab returns "crontab.10673" 1L, 49C written
I enter :wq
crontab closes
bash returns "no changes made to crontab"
In bash, I type crontab -l ... and my crontab entry isn't there
What am I missing here?
I was able to set up the cron job using webmin, but as we all know, webmin is for wimps. Real men use CLI.
- 04-21-2009 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,939
I'm not sure I'm understanding your post correctly. When you type 'crontab -e' in a terminal and crontab opens, do you type 'esc' in the terminal? No reason for that. Just type i to insert, make your changes, when you have completed the changes, hit the ESC key to go to command mode and type ':wq' (w/o quotes), hit Enter key.
- 04-22-2009 #3
Hi there,
Try touching /etc/crontab and restarting cron
Then edit your crontab again. I got this from here:Code:touch /etc/crontab service cron restart
crontab: no changes made to crontab [Archive] - FedoraForum.org


Reply With Quote