concurrent shell-scripting
Sep. 28th, 2006 11:59 amI'm trying to make a shell-script that:
* runs files from a dataset, one by one (for each file, there will be one call to java)
* but after 5 minutes in the same file, it gives up and runs the next one.
Any tips about how to make this concurrency?
* runs files from a dataset, one by one (for each file, there will be one call to java)
* but after 5 minutes in the same file, it gives up and runs the next one.
Any tips about how to make this concurrency?
(no subject)
Date: 2006-09-28 04:11 pm (UTC)(no subject)
Date: 2006-09-28 07:47 pm (UTC)...but Orc doesn't have a functioning implementation yet. :(
(no subject)
Date: 2006-09-29 03:20 am (UTC)Been there done that
Date: 2006-09-29 01:27 pm (UTC)It notably used zsh's coproc thingie to implement some kind of interprocess communication whereby the winning subprocess could atomically announce "the activity I have been watching ended with success|failure". Horrible. You cannot just spawn a child -- you must spawn a watcher, who spawns the child and reports to the arbiter.