Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: sched waits for next prompt. Does it have to?



Rob Hooft <Rob.Hooft@xxxxxxxxxxxxxxxxxx> writes:

> 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".

As I have mentioned before, you could indeed use TMOUT and TRAPALARM
to build an at-like function.  For "periodic", this is relatively
easy, but to make a generic sched thing you would have to maintain
some kind of priority queue.  If someone would hack together a shell
function for this purpose, it would be nice to include it in the
distribution.

For all my purposes, btw, "at" suffices.

Bas.



Messages sorted by: Reverse Date, Date, Thread, Author