This is most likely because you did not clean up $ENV{PATH} to be secure. Most likely, if your Unix installation is a standard installation, the following should work at the top of your script:
$ENV{PATH} = '/bin:/usr/bin:/usr/local/bin';
If that doesn't work, you need to find out in which directory the ping executable lives, and put the name of that directory into $ENV{PATH} instead.
In reply to Re^3: using -T doesn't work
by Corion
in thread using -T doesn't work
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |