in reply to using -T doesn't work

You would greatly increase your chances of someone helping you if you told us what the problem you are having is. Are you not getting output at all? Errors? Unexpected results?

My home on the web: http://www.techfeed.net/

Replies are listed 'Best First'.
Re^2: using -T doesn't work
by tcf03 (Deacon) on Dec 28, 2004 at 19:36 UTC
    This is what I get when running it with #!/usr/bin/perl -T

    Insecure dependency in connect while running with -T switch at /usr/libdata/perl5/Net/Ping.pm line 914.

      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.


        Neither works, Im running openbsd 3.6. ping lives in sbin and is suid root.
        Neither of those suggestions work...