* Jorge Almeida <[EMAIL PROTECTED]> [03/05/06 19:30]:
> On Wed, 3 May 2006, Moshe Kaminsky wrote:
> 
> >You can use 'kill 0' to send a signal to your own process group.
> >Something like this:
> >
> >#!/bin/sh
> >trap 'kill 0;exit' TERM
> >echo "before"
> >( sleep 30; echo inside )
> >echo "after"
> >
> No use. trap will wait till the running child is completed, which is not what
> I want (as reply of Hans-Werner).

Well, I just tried it, and it worked.

Moshe

Attachment: pgpbwqTHYyGA8.pgp
Description: PGP signature

Reply via email to