[wplug] IPCop script
James O'Kane
jo2y at midnightlinux.com
Mon Jun 16 16:20:33 EDT 2003
On Mon, 16 Jun 2003, Arnaud Loos wrote:
> if [ "$?" != "0" ] ; then
!= is for strings. At least in bash. I'm assuming /bin/sh is a link to
/bin/bash. I tried this on my machine and it worked, but it's possible
you're using an sh that isn't as forgiving? Try
if [ `echo $?` -eq 0 ]; then
You'll probably also want -w or something to ping so it doesn't wait
forever.
-james
More information about the wplug
mailing list