How do you schedule a command to run later in UNIX?

pX

Golden Member
Feb 3, 2000
1,895
0
71
I just need to kick off a script later this evening after I have left work, I know there is probably something like this built into the shell....
anyone know?
the other alternative I considered was writing a shell script or something to simply check the time over and over again, but that seem such a waste.....
 

kherman

Golden Member
Jul 21, 2002
1,511
0
0
sleep #

# is in seconds.

This will put a delay in your script.
works at the command prompt too.

Karl
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
"man at"

frankly, like most man pages its missing a human-readable explanation, and completely short on examples... but its a start :)

bart
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Rogue
Three replies, three different answers. That's diversity. ;)

3 replies, 2 answers. I didnt post kherman's answer because counting seconds is a pain.
 

FUBAR

Senior member
Oct 11, 1999
618
0
0
Don't forget about cron if this is something you need to run often on scheduled days

first, so you get the format
man crontab

then to make changes
crontab -e