specifying a day for at command
I want to run a job every 00:05 sunday morning. It is a script which run for a few minutes, then attempts to re-submit itself via at. at the end of the script, it has: echo /usr/local/bin/script | at 00:05 sunday this produces an error message: at:trying to travel back in time yes, cron could do it, but I would like to run it with at. on my old unix OS (SCO) I could enter at 00:05 next sunday, which would work. trying: at 00:05 + 7 days (on sunday at approx 00:10) gets queued for next Monday. is there a way to do this? Thanks, Jim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: specifying a day for at command
On 1/2/2006 9:20 AM Jim Pazarena said the following: I want to run a job every 00:05 sunday morning. It is a script which run for a few minutes, then attempts to re-submit itself via at. at the end of the script, it has: echo /usr/local/bin/script | at 00:05 sunday this produces an error message: at:trying to travel back in time yes, cron could do it, but I would like to run it with at. on my old unix OS (SCO) I could enter at 00:05 next sunday, which would work. trying: at 00:05 + 7 days (on sunday at approx 00:10) gets queued for next Monday. is there a way to do this? Just a guess. What about 'at 00:05 + 6 days'? I assume some sort of rounding to the next full day is making it schedule for Monday. HTH, Drew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: specifying a day for at command
On Tue, 3 Jan 2006 03:50 am, Jim Pazarena wrote: I want to run a job every 00:05 sunday morning. It is a script which run for a few minutes, then attempts to re-submit itself via at. at the end of the script, it has: echo /usr/local/bin/script | at 00:05 sunday this produces an error message: at:trying to travel back in time yes, cron could do it, but I would like to run it with at. on my old unix OS (SCO) I could enter at 00:05 next sunday, which would work. trying: at 00:05 + 7 days (on sunday at approx 00:10) gets queued for next Monday. 7 days from 0:10 on Sunday is 0:10 on the next Sunday -- then look forward to 0:05 and that is on Monday. So: at 00:05 + 7 days should work. But you can also specify a particular date. Malcolm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: specifying a day for at command
On Tue, 3 Jan 2006 12:58 pm, Malcolm Kay wrote: On Tue, 3 Jan 2006 03:50 am, Jim Pazarena wrote: I want to run a job every 00:05 sunday morning. It is a script which run for a few minutes, then attempts to re-submit itself via at. at the end of the script, it has: echo /usr/local/bin/script | at 00:05 sunday this produces an error message: at:trying to travel back in time yes, cron could do it, but I would like to run it with at. on my old unix OS (SCO) I could enter at 00:05 next sunday, which would work. trying: at 00:05 + 7 days (on sunday at approx 00:10) gets queued for next Monday. 7 days from 0:10 on Sunday is 0:10 on the next Sunday -- then look forward to 0:05 and that is on Monday. So: at 00:05 + 7 days xx at 00:05 +6 days should work. But you can also specify a particular date. Malcolm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]