Originally posted by: SystemAdmin
One possibility is to have two entries in crontabs: one for hours 1-23 and another for hour 0. The hour 0 program always runs at a particular time, so it will always run with the check for hour 23 of the previous day.
You may wish to play with the TZ variable, as this can be used to set the date to the previous day; e.g.
(TZ=aaa-11; date) # In Sydney, Australia this displays the current time & date
(TZ=aaa+13; date) # This displays the date and time for 24 hours ago
You will have to play with the offset, but this can be made to make out the shell script is running at a particular time. Leave out the brackets; you only need these when testing.
#AIX-Forum