Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #1288
| From | Chris Davies <chris-usenet@roaima.co.uk> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: at syntax |
| Date | 2011-05-31 09:44 +0100 |
| Organization | Roaima. Harrogate, North Yorkshire, UK |
| Message-ID | <0dmeb8xqa8.ln2@news.roaima.co.uk> (permalink) |
| References | <94i4ppF634U1@mid.individual.net> |
General Schvantzkoph <schvantzkoph@yahoo.com> wrote:
> at adds a week to a day if the day is today.
Not necessarily:
chris:~$ date
Tue May 31 09:32:06 BST 2011
chris:~$ at 10am today
warning: commands will be executed using /bin/sh
at> date >/tmp/1.at
at> <EOT>
job 794 at Tue May 31 10:00:00 2011
chris:~$ at 9am today
at: refusing to create job destined in the past
chris:~$ at 10am
warning: commands will be executed using /bin/sh
at> date >/tmp/2.at
at> <EOT>
job 795 at Tue May 31 10:00:00 2011
chris:~$ at 9am
warning: commands will be executed using /bin/sh
at> date >/tmp/3.at
at> <EOT>
job 796 at Wed Jun 1 09:00:00 2011
The "today" modifier forces the date parser to use today's date. If the
time has passed then the job cannot be queued. If you omit the "today"
modifier, the at program tries to make sense of what you're requesting,
and if the time is earlier than "now", it assumes you meant tomorrow.
This sort of interpretation can be great for humans, but potentially
very complex for other programs to use correctly. Fortunately, at also
provides an absolute date/time specification:
chris:~$ at 13:45 utc 10 jun 2011
warning: commands will be executed using /bin/sh
at> date >/tmp/4.at
at> <EOT>
job 797 at Fri Jun 10 13:45:00 2011
Unfortunately, it looks like this version of at may not honour the
timezone parameter (I need to check this further).
Chris
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
at syntax General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-05-30 18:08 +0000
Re: at syntax Lew Pitcher <lpitcher@teksavvy.com> - 2011-05-30 16:04 -0400
Re: at syntax General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-05-30 23:16 +0000
Re: at syntax Chris Davies <chris-usenet@roaima.co.uk> - 2011-05-31 09:44 +0100
Re: at syntax General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-05-31 12:37 +0000
Re: at syntax Chris Davies <chris-usenet@roaima.co.uk> - 2011-05-31 14:54 +0100
Re: at syntax General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-05-31 18:52 +0000
Re: at syntax Chris Davies <chris-usenet@roaima.co.uk> - 2011-06-02 21:03 +0100
Re: at syntax dave.gma+news002@googlemail.com.invalid (Dave Gibson) - 2011-06-02 22:24 +0100
Re: at syntax Chris Davies <chris-usenet@roaima.co.uk> - 2011-06-03 09:34 +0100
Re: at syntax General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-06-03 13:21 +0000
Re: at syntax Chris Davies <chris-usenet@roaima.co.uk> - 2011-06-03 15:46 +0100
Re: at syntax Kevin Snodgrass <kdsnodgrass@yahoo.com> - 2011-06-01 02:08 +0000
Re: at syntax General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-06-01 02:50 +0000
Re: at syntax Kevin Snodgrass <kdsnodgrass@yahoo.com> - 2011-06-01 04:30 +0000
Re: at syntax Kevin Snodgrass <kdsnodgrass@yahoo.com> - 2011-06-01 04:31 +0000
Re: at syntax Kevin Snodgrass <kdsnodgrass@yahoo.com> - 2011-06-01 04:31 +0000
Re: at syntax Kevin Snodgrass <kdsnodgrass@yahoo.com> - 2011-06-01 04:30 +0000
csiph-web