Dave Palmer <[EMAIL PROTECTED]>:
> > open PINGRESULTS, ">/tmp/pingresults.$$" or die $!;
> > open PING, "-|" or exec "/usr/sbin/ping", "-sRv", "-I", "1",
> > $pnode, 64, 5);
> > while () { print PINGRESULTS; }
> > close PING;
> > close PINGRESULTS;
Alltho I haven't read thru the original prob
Aanhalen Dave Palmer <[EMAIL PROTECTED]>:
>
> Also... -T can be your friend, espcially with CGI
>
> ./dave
>
> >
> > Dave Palmer wrote:
> >
> > : Your working script is *definitely* the way you want to go...
> > its generally
> > : a no-no to ever give user 'nobody' (e.g. web server) access
Also... -T can be your friend, espcially with CGI
./dave
>
> Dave Palmer wrote:
>
> : Your working script is *definitely* the way you want to go...
> its generally
> : a no-no to ever give user 'nobody' (e.g. web server) access to
> your shell
> : (which is what is happening with the system
Dave Palmer wrote:
: Your working script is *definitely* the way you want to go... its generally
: a no-no to ever give user 'nobody' (e.g. web server) access to your shell
: (which is what is happening with the system() call).
I wouldn't be so restrictive about it; sometimes it's necessary to
user
'nobody'
to do much of anything :)
./dave
> -Original Message-
> From: Mohan Kompella [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 01, 2001 4:42 PM
> To: [EMAIL PROTECTED]
> Subject: perl ping script using cgi
>
>
> Hello all,
>
> I was tryi
Hello all,
I was trying to write a cgi-script that displays the results of a ping
against a host that is passed to the cgi-script. The first time, I used what
I might term the "brute force approach", which didn't work and then, I used
Net::Ping, which worked. However I am really curious as to why