Zsh Mailing List Archive
Messages sorted by:
Re: Can periodic hook stop rescheduling?
- X-seq: zsh-workers 39352
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Can periodic hook stop rescheduling?
- Date: Thu, 15 Sep 2016 15:19:42 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=C1hPof6j9cfkCrUBdGEuoAuObXe3Od4kQ6p1osCWFDA=; b=tPkvtHp94d8eM9LaL8EEcDKWdTOeDQ5NL+dYS1pRECTriTZCPUUur03acZ7oqG8YFw y/RF90TkRIwGbjTvZ/B8lUR1SCM03BBb3gXwVkaL4LLrzB00C9PMsZAdUQPhUQDqytTr HruBcuaDuZ7sQGVQVjqmPf3Q0y0mTQ+8js05f2oy7rkfEoeKiN+ZqQsC7f1UoJQ1FSHv /OPhmvkRkzHn0UYW3AwyKtk6h+zJcamBdLT2kHPahUL3HVzbvpNXx0PgcbbT6iFCoiR3 zLXjy9J6fnd72o0tDQOF29HL1TQZhCz1lTAoYL7I/YuEjloie+5ORE+jfjmyO1fNIG1F ZiEQ==
- In-reply-to: <CAKc7PVBPLZ6kG6=w62aTWG3XjfXQi7TEmgunTZ0Ch4a=db8Ubg@mail.gmail.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20160913085130eucas1p19723ac09c11d596542360173e4a4b308@eucas1p1.samsung.com> <CAKc7PVDkrKD_2VyvO_2JigwfvU1m=3QwO4Vac=HgHZNbOOU7pA@mail.gmail.com> <firstname.lastname@example.org> <160913091822.ZM29020@torch.brasslantern.com> <email@example.com> <160914215152.ZM519@torch.brasslantern.com> <CAKc7PVBPLZ6kG6=w62aTWG3XjfXQi7TEmgunTZ0Ch4a=db8Ubg@mail.gmail.com>
On Sep 15, 12:18pm, Sebastian Gniazdowski wrote:
} This might be a general topic of descheduling, its not-full
} convenience. It is done via: sched -item (number of item on sched's
} list as man page says). Apparently one has to fork, parse `sched`
} output, establish item nr and invoke sched -item.
Well, sched was intended as a purely interactive feature since it
only works at all in interactive shells, so the assumption at the
time was that a human would read the sched output and remove the
corresponding item. Hiding the scheduled tasks behind some kind
of UI and manipulating them programatically was not in the plan.
At the moment it's like you're complaining that it's inconvenient
that your 1989 Volvo doesn't have keyless ignition.
} new builtin is rather a unpleasant thing, one has to fill some
} registration tables probably? What are chances for schedid, ksched,
} automatic rescheduling? Maybe I could implement them
They're more likely to show up as options to "sched" itself than as
new separate builtins.
} PS2. About my question on periodic hook, is it immune to Ctrl-C?
It's not immune in the sense that you can interrupt the function
while it's running, but it is immune in that it keeps repeating as
long as PERIOD has a value even if it was interrupted last time.
Messages sorted by: