RE: Using the 'at' command

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

 



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.

-Channon

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

On 11:33 06 Nov 2003, Quillen, Channon <CQuillen@xxxxxxxxxxxx> 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.

Cheers,
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

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


--
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list


[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux