[Scottish] Trapping SIGINT in shell scripts

Andrew Elwell andrew at elwell.org.uk
Wed Aug 25 20:35:35 BST 2004


> On Wednesday 25 August 2004 11:08, Martin McCarthy wrote:
> I'm a bit hazy on the whole trap thing - I'd have tried running the
> child in  in the background and using wait to ensure jobs run
> sequentially.

ah, bur what's presently happening is that say /foo/30_stuff hangs and I want
to cancel it with a crtl-c, allowing my run-parts to go onto
/foo/40_morestuff
it seems to be OK with just the "trap '' 2" from the run-parts

.... so far :-)

A





More information about the Scottish mailing list