#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    4
    Rep Power
    0

    Smile "can't access your crontab file. Resubmit it."- Crontab error


    I am getting mail from root:
    "can't access your crontab file. Resubmit it."
    The error is "No such file or directory"

    Also I observed that this mail is sent when I get a cron log message in /var/cron/log:

    ! unexpected pid returned 22459 (ignored) Mon Mar 14 18:45:15 2005

    When I checked the above pid it was of /usr/sbin/cron

    Would anyone tell me what the reason can be? At least please give me some options so that I can proceed with that.
    Thanks a lot in advance
    simam
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Location
    Prague, Czech Rep.
    Posts
    117
    Rep Power
    15
    Originally Posted by simam
    I am getting mail from root:
    "can't access your crontab file. Resubmit it."
    The error is "No such file or directory"

    Also I observed that this mail is sent when I get a cron log message in /var/cron/log:

    ! unexpected pid returned 22459 (ignored) Mon Mar 14 18:45:15 2005

    When I checked the above pid it was of /usr/sbin/cron

    Would anyone tell me what the reason can be? At least please give me some options so that I can proceed with that.
    Thanks a lot in advance
    simam
    Hi,

    look in /var/spool/cron/crontabs/ directory. There should be a file named $LOGNAME (your logname), where your jobs are stored. You must be allowed to submit cron jobs, ask your system administrator. Normaly, only root can submit cron jobs.

    Look in man cron, man crontabs

    Regards
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    4
    Rep Power
    0
    Hi zlutovsky,

    Thanks a lot for you suggestions. But in this case I am working in the root equivalent account and it is allowed to submit cronjobs.
    Also all the time it is not giving the mail. Only when the error "unexpected pid returned" comes in the /var/crom/log , I am getting a mail from the root.
    I came to know that there is a chance of cron file getting corrupted if we edit it by using vi editor. If it is that case, writing the cron file afresh will solve the problem? ( I mean using crontab -e).

    Thanks and warm regards,
    simam
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2004
    Location
    Middle Europa
    Posts
    1,198
    Rep Power
    17
    NEVER edit crontabs directly usin an editor
    crontab -e make a lot more the just edit.
    if corrupted, remove it, create a new one stop and restart cron
    on SVR4 use /etc/rc2.d/S??cron
    man crontab will point you to files in /etc/cron.d
    have a loock, carefully pay attention to NOTE
    working on Solaris[5-9], preferred languages french and C.

IMN logo majestic logo threadwatch logo seochat tools logo