zsh-users
 help / color / mirror / code / Atom feed
* Scripting subprocesses and timed waits.
@ 2005-01-12 14:56 Jason Price
  2005-01-12 17:49 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Price @ 2005-01-12 14:56 UTC (permalink / raw)
  To: zsh-users

I have a possibly long running expect script that goes off and does stuff.
Sometimes it takes a long time, and sometimes it will never return at all.

I'd like to find a way to fire off several of these, and notice when each
finishes.  If they don't finish after x seconds, just kill those attempts
and move on.

Ideally I'd like to fire off each of these scripts into the background,
if they all finish quickly, move on.  If one or more take more than the
full time I give them, kill them.

Is there a clever zsh way to do this?  I've noticed coprocesses in the past
and in the manual, but I haven't figured out how to control it sufficiently
for this usage.

Thanks;
Jason


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-12 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-12 14:56 Scripting subprocesses and timed waits Jason Price
2005-01-12 17:49 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).