AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  crontab

    Posted Thu February 28, 2008 09:26 PM

    Originally posted by: chandru0078


    Dear All

    I need to run rmancold.sh script at 1am Sunday night regardless with the date.Can anyone advised how will be the crontab entire.i tried give 0 value for date option
    but getting error as below

    A line of the crontab file:
    30 1 0 * 5 /backup/backup/script/CIBUAT_bkp/tar_cibuat.sh

    contains the following error:
    0481-077 The date or time is either too large or too small.

    please advised


  • 2.  Re: crontab

    Posted Thu February 28, 2008 09:54 PM

    Originally posted by: orphy


    Your line means running the script on day 0, on a Friday of any month, and at 1:30am. I'm pretty sure AIX figured out that there is no day 0 on any of the 12 months in existence and thus gave you the error.

    This should work for you

    0 1 * * 0 /backup/backup/script/CIBUAT_bkp/tar_cibuat.sh

    Are you sure you want to run the rmancold.sh or is it that you want to run tar_cibuat.sh?

    man crontab for more info.
    Orphy


  • 3.  Re: crontab

    Posted Thu February 28, 2008 11:52 PM

    Originally posted by: chandru0078


    Thank you for the feedback.:)