Sched
From FreeBSDwiki
(Difference between revisions)
Ninereasons (Talk | contribs) |
(link to shell) |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | '''sched''' is an immediate scheduler built into [[tcsh]] and some other | + | '''sched''' is an immediate scheduler built into [[tcsh]] and some other [[shell]]s. |
==Syntax== | ==Syntax== | ||
Line 13: | Line 13: | ||
==Examples== | ==Examples== | ||
− | '''4:47:45pm''' | + | '''4:47:45pm''' > sched +0:0 echo "execute after 0hrs 0min (now)" |
execute after 0hrs 0min (now) | execute after 0hrs 0min (now) | ||
− | '''4:47:54pm''' | + | '''4:47:54pm''' > sched 4:48p echo "command executed at 4:48p" |
− | '''4:47:58pm''' | + | '''4:47:58pm''' > sched |
1 16:48 echo "command executed at 4:48p" | 1 16:48 echo "command executed at 4:48p" | ||
− | '''4:48:00pm''' | + | '''4:48:00pm''' > command executed at 4:48p |
− | '''4:48:00pm''' | + | '''4:48:00pm''' > |
==See also== | ==See also== | ||
Line 26: | Line 26: | ||
* [[cron]] | * [[cron]] | ||
− | [[Category:System | + | [[Category:System Commands]] |
Latest revision as of 09:53, 16 June 2006
sched is an immediate scheduler built into tcsh and some other shells.
[edit] Syntax
The syntax is simple:
- Schedule a command for +hh:mm after now:
sched +hh:mm command
.
- Schedule a command for hh:mm:
sched hh:mm command
- Subtract a scheduled command:
sched -job
- Show sheduled commands:
sched
[edit] Examples
4:47:45pm > sched +0:0 echo "execute after 0hrs 0min (now)" execute after 0hrs 0min (now) 4:47:54pm > sched 4:48p echo "command executed at 4:48p" 4:47:58pm > sched 1 16:48 echo "command executed at 4:48p" 4:48:00pm > command executed at 4:48p 4:48:00pm >
[edit] See also
External, queued schedulers.