----- Original Message ----- 
From: "Mike Sensney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 6:36 AM
Subject: Re: [Leaf-user] mnc and scripts


> However, there is another rather crude way that I think will work. 
> 
> <code>
> echo $data | mnc $address $port &
> pid=$!
> sleep 5
> kill $pid
> </code>

Thanks Mike, it works just how I want to, crude or not :-).

> What this does is
> 1)run mnc as a background task 
> 2)saves the background task PID
> 3)sleeps 5 seconds
> 4)kills the background task (mnc)

And thanks for the rundown on what's happening.

tim


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to