RE: perl ping script using cgi

2001-06-02 Thread boumans
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

RE: perl ping script using cgi

2001-06-02 Thread boumans
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

RE: perl ping script using cgi

2001-06-01 Thread Dave Palmer
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

RE: perl ping script using cgi

2001-06-01 Thread Timothy Kimball
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

RE: perl ping script using cgi

2001-06-01 Thread Dave Palmer
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

perl ping script using cgi

2001-06-01 Thread Mohan Kompella
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