> Here is how it can be done if the failure is in the first component
> of a pipeline:
>
>        set -o monitor  # causes each pipeline to be a process group
>        { trap "exec ksh -c 'kill -- -$$'" ERR;first_command;} | ...| 
> last_command
>
> If first_command fails, then a kill signal will be sent to the group
> of the first process which should kill all the other commands.

very interesting, thank you. i'll have a look at whether that helps
with the real situation i'm dealing with.
-- 
Aaron Davies
[email protected]

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to