Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: General Schvantzkoph Newsgroups: comp.os.linux.misc Subject: Re: at syntax Date: 30 May 2011 23:16:01 GMT Lines: 26 Message-ID: <94imphF634U2@mid.individual.net> References: <94i4ppF634U1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 6s78uD+hTwrHFf10EWEhkgnR3nGl7wdd+eiVP8lvfYO9MKeJPd Cancel-Lock: sha1:16zMEkeJuSBd8fg7N3zKFlKfn2s= User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.misc:1287 On Mon, 30 May 2011 16:04:07 -0400, Lew Pitcher wrote: > On May 30, 2011 14:08, in comp.os.linux.misc, schvantzkoph@yahoo.com > wrote: > >> at adds a week to a day if the day is today. To clarify if today is >> Monday and I schedule something as >> >> at 10:00 PM MON < foo >> >> it will execute foo a week from today rather than tonight. I'm using >> scripts to schedule events so I don't want to us TODAY to specify the >> date, I want to use the generic day of the week. Is there a way to make >> at schedule an event on the same day or do I have to put a date test >> into the script? > > Try > at 10pm > for 10 pm today I need to be able to specify the day but have it do the right thing. The script might be executed on any day so if teh script gets executed on Tuesday and it schedules something on Monday then that event will happen on the next Monday but if the script gets called on Monday morning and the event is for Monday night then it will execute that night not the next week.