Find the answer to your Linux question:
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, ...
  1. #1
    Just Joined! snorky's Avatar
    Join Date
    Jan 2007
    Posts
    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.

  2. #2
    Linux 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.

  3. #3
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Hi there,

    Try touching /etc/crontab and restarting cron

    Code:
    touch /etc/crontab
    service cron restart
    Then edit your crontab again. I got this from here:

    crontab: no changes made to crontab [Archive] - FedoraForum.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...