Cathey, Jim schrieb:
> So you're looking at the string output of pidof?
> If proc's not there, I don't think that:
> 
>       if [ "" ]
> 

whatever he does it should no crash ash


> is highly meaningful.  (Hence the -z suggestion?)
> When I use pidof to probe for a process, I use
> its exit status:
> 
>       if pidof <foo> >/dev/null
> 

pidof <foo> >/dev/null || restart_foo

> -- Jim
> 
> 
> 
> 
> 
> 
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to