Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: use zsh/sched in a script
- X-seq: zsh-users 14357
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: use zsh/sched in a script
- Date: Thu, 10 Sep 2009 10:33:04 +0100
- In-reply-to: <ed7b1c610909090122t2df204c3vc78271587ccad45f@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <ed7b1c610909090122t2df204c3vc78271587ccad45f@xxxxxxxxxxxxxx>
On Wed, 9 Sep 2009 08:22:13 +0000
Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx> wrote:
> Hi
> I'd like to know if there is a way to use a zsh/sched with in a script
> to schedule the call of a function.
>
> I tried
> sched +60 foo
> where foo is a function of my script but it doesn't do anything, any clue?
It doesn't work: the list of scheduled commands is only polled on reading
from the interactive command line. There's no obvious place to put it in a
non-interactive shell (given that the mechanism is fundamentally
synchronous).
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author