Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sched waits for next prompt. Does it have to?
- X-seq: zsh-users 117
- From: Rob Hooft <Rob.Hooft@xxxxxxxxxxxxxxxxxx>
- To: Richard Coleman <coleman@xxxxxxxxxxxxxxx>
- Subject: Re: sched waits for next prompt. Does it have to?
- Date: Tue, 31 Oct 1995 23:13:34 +0100
- Cc: hware@xxxxxxxxxxxx (Henry Ware), zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199510311902.OAA11276@xxxxxxxxxxxxxxxxxxxxxxxxx>
- References: <9510311442.AA14509@xxxxxxxxxxxxxx> <199510311902.OAA11276@xxxxxxxxxxxxxxxxxxxxxxxxx>
>>>>> "RC" == Richard Coleman <coleman@xxxxxxxxxxxxxxx> writes:
>> ... I'm having a little
>> trouble with the sched commend. I'd like it to perform the action
>> at the specified time rather than at the next prompt: for example,
>> when I want it to act as an alarm clock, or as "at", etc.
RC> Currently zsh's handling of `sched' and the shell function
RC> `periodic' (if defined) are very simple. Zsh just checks time
RC> stamps in the function preprompt() and executes scheduled
RC> commands or `periodic' if it has been long enough. To do
RC> anything better would require setting up signals, etc...
Isn't it possible to call the periodicals from an ALARM function? If
not now, then it should be relatively easy to add such functionality?
That would enable one to make "sched" behave like "at" using a smart
ALARM handler and "TMOUT=60".
Rob.
--
Rob W. W. Hooft ====== You have a computational protein problem? Try WHAT IF!
= Rob.Hooft@xxxxxxxxxxxxxxxxxx, Meyerhofstr. 1, 69117 Heidelberg, Germany. ==
3.0GS$ d-(?) s: a28 C++ UAIOS++(-) UL++++ P++ L++(+++) E++ W++(-) N++(+++) K?
w-- O? M-(--) V(-) PS PE+ Y+ PGP t 5? X+ R tv+ b+ DI? D+ G+ e++++ h(*) !r !y+
Messages sorted by:
Reverse Date,
Date,
Thread,
Author