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


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

Re: at syntax

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From dave.gma+news002@googlemail.com.invalid (Dave Gibson)
Newsgroups comp.os.linux.misc
Subject Re: at syntax
Date Thu, 02 Jun 2011 22:24:45 +0100
Organization A noiseless patient Spider
Lines 26
Message-ID <tlblb8x953.ln2@perseus.wenlock-data.co.uk> (permalink)
References <94i4ppF634U1@mid.individual.net> <0dmeb8xqa8.ln2@news.roaima.co.uk> <94k5nhF7lqU1@mid.individual.net> <1h8fb8xbmc.ln2@news.roaima.co.uk> <94krmhF7lqU2@mid.individual.net> <mt6lb8xomr.ln2@news.roaima.co.uk>
Injection-Info mx04.eternal-september.org; posting-host="oB/37+opTUevaqQ9IU11wg"; logging-data="11143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D2Kk8gP6tQ/LUl/zp6WDy"
User-Agent tin/1.9.6-20101126 ("Burnside") (UNIX) (Linux/2.6.36-1 (i686))
Cancel-Lock sha1:nBXxPGnlFy2lx7JGFL044O115dY=
Xref x330-a1.tempe.blueboxinc.net comp.os.linux.misc:1325

Show key headers only | View raw


Chris Davies <chris-usenet@roaima.co.uk> wrote:
> General Schvantzkoph <schvantzkoph@yahoo.com> wrote:
>> 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.
> 
> So what do you actually want to do? I believe I've satisfied your original
> description, but clearly there is a disjoint between explanation and
> (my) understanding.
> 
> If it's regular, use cron. If it's one-off (or so), use at.
> 
> If you want to run a job on a particular day of the week, specify that
> day. If the time you're giving has already passed on that day (i.e. it's
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If the given day is today, ``at'' will add a week regardless of the
current time-of-day.  Here:

  $ date
  Thu Jun  2 22:13:12 BST 2011
  $ echo "echo hello" | at 11:30pm thursday
  job 638 at Thu Jun  9 23:30:00 2011

> "today") then the only reasonable thing the system can do is either (a)
> refuse the job, or (b) schedule it for next week.

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


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