Jonathan Guiton wrote:
>
> I've been reveiweing my ip-up script today and noticed that the way
> I tell if sendmail has finished processing the Q (so time to drop the
> line) is determined thus:
>
> NPR = `ps hx | grep sendmail | grep -v grep | wc -l`
> while test $NPC -gt 1
> do
> sleep 5
> NPR = `ps hx | grep sendmail | grep -v grep | wc -l`
> done
>
> This is particularly unweildy and I just wondered how other
> people do it.
>
> Jon
Before the idle option came along, I was doing something
similar with netstat -tn (instead of ps)
________________________________________________________________________
David Nicol 816.235.1187 [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]