at now + 1 minute -f yourscript.sh
OR
find . -name core -exec rm {} \; &
sleep 30
updatedb &
Federico Sevilla III wrote:
On Thu, Sep 19, 2002 at 10:33:49PM +0800, -JhAzEr- wrote:
> For example i have two commands to execute in a script, i want the
> second command to execute after 30sec upon running the first command.
> Is this possible?You probably want the sleep command, as in:
$ sleep 30
to sleep for 30 seconds, or
$ sleep 1.5m
$ sleep 0.49dor something like that. Unfortunately
$ sleep 1d2h3m
doesn't work. However you can always convert to:
$ sleep 93780
$ sleep 1563m
$ sleep 26.05h
$ sleep 1.0854167dFor more information check out the sleep(1) manual page:
$ man sleep
Those wanting to check to see how accurate sleep is may use time:
$ time sleep 5
real 0m5.012s
user 0m0.000s
sys 0m0.010sBut then that's quite contrived, eh? Okay okay, I'll go back and study
(I have an exam on Saturday, and I wager the stress is showing). ;)--> Jijo
PS- this is a newbie question, I'm cc'ing that list.
--
Federico Sevilla III : http://jijo.free.net.ph
Network Administrator : The Leather Collection, Inc.
GnuPG Key ID : 0x93B746BE
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
--
***** [ Note ] *****
Kindly include the "xxpmecomweb" mailgroup
in the recipient list when responding to emails.
Thanks. ./lem
***** [ /Note ] *****
