[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Using the 'at' command

Title: RE: Using the 'at' command

I read, and re-read, the man pages, and searched online but couldn't find an example of what I was trying to do.  I know that I can always submit a question to this list and get an answer.

Here is what actually worked:
#at -f /tmp/tmp$$.sh $eventTime $eventDate-$minBefore min

The at command didn't like any spaces before the "-$minBefore".
Thanks for your reply, Cameron.


-----Original Message-----
From: Cameron Simpson [mailto:cs zip com au]
Sent: Friday, November 07, 2003 11:31 PM
To: psyche-list redhat com
Subject: Re: Using the 'at' command

On 11:33 06 Nov 2003, Quillen, Channon <CQuillen txfb-ins com> wrote:
| I have been successful in running the 'at' command at a later time and date,
| however I would like to also like to be able to specify a certain number of
| minutes less.
| For example,
| This command will work: at -f /tmp/tmp1735.sh 11:27 11/06/03
| This command will not: at -f /tmp/tmp1735.sh 11:27-2 min 11/06/03

Try this:

        at -f /tmp/tmp1735.sh 11:27 11/06/03 -2min

i.e. don't drop it in the middle of the date. These things have
a sequence. Full syntax is in the file /usr/share/doc/at-3.1.8/timespec
(you may have to adjust for your version of at - the manual entry has
the appropriate string). It's clear from the syntax that you can both
add and subtract time _at_the_end_ of the spec. Snippet:

timespec        : spec_base
                | spec_base inc_or_dec

And off it goes. Very readable.

Cameron Simpson <cs zip com au> DoD#743

With no clue of the technique, how can one hope to master the maneuver?
        - Ed Green

Psyche-list mailing list
Psyche-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]