Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #1295

Re: at syntax

From General Schvantzkoph <schvantzkoph@yahoo.com>
Newsgroups comp.os.linux.misc
Subject Re: at syntax
Date 2011-05-31 18:52 +0000
Message-ID <94krmhF7lqU2@mid.individual.net> (permalink)
References <94i4ppF634U1@mid.individual.net> <0dmeb8xqa8.ln2@news.roaima.co.uk> <94k5nhF7lqU1@mid.individual.net> <1h8fb8xbmc.ln2@news.roaima.co.uk>

Show all headers | View raw


On Tue, 31 May 2011 14:54:09 +0100, Chris Davies wrote:

> General Schvantzkoph <schvantzkoph@yahoo.com> wrote:
>> I wrote a wrapper that checks the day and fixes it, but I would prefer
>> if there was a way for at to do the right thing itself,
> 
> As far as I can tell from the requirement in your original post, "at"
> does do the right thing itself.
> 
>     at -V
>     at version 3.1.12
> 
>     # Assuming it's now midday,
>     at 10pm today   # tonight
>     at 9am today    # fails, because 9am has already happened
> 
> I must admit that I don't understand, given you want something to happen
> "today", why you are loathe to use the "today" qualifier.
> 
> With regards to your scriptlet you pasted, isn't this fundamentally the
> same as something like this?
> 
>     at 2200 `date +'%e %b %Y'`  # 10pm today, with explicit date
> 
> Chris

It's a general purpose script to schedule captures of TV shows using an 
HDHOMERUN box. If it were a one time thing then using TODAY would be OK, 
but it's something that might be executed on any day of the week. I don't 
want to have to edit it every time I run it.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


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