in reply to Re: Re: Re: PING taking too long
in thread PING taking too long

Here is the situation. The PING works fine using the icmp protocol but not the tcp protocol in a perl script running directly from a linux bash console.

When I use the same program as a cgi script running on the same server as when I executed the script on the console it does work. The icmp protocol makes it quit right away and the tcp protocol returns 0's for anything pinged.

Jonathan Southwick Allegheny College jsouthwi@allegheny.edu

Replies are listed 'Best First'.
Re: (5): PING taking too long
by rchiav (Deacon) on Sep 27, 2001 at 21:36 UTC
    1) what user is the CGI running as? As mentioned before by others, and I belive in the doc's fr Net::Ping, the script needs to be suid root.. which might not be the best thing for a CGI.

    2) Also mentioned before, there are issues running TCP pings. Google returned a lot of discussions about things not working quite right with TCP and UDP pings.

    3) Depending on what you're doing, there could be a issue of the environment not being the same.

    4) Again, posting your code is a good idea.

    Rich