On Tuesday, July 30, 2002, at 01:47 , Sudarshan Raghavan wrote: [..] > I think this has the same issue, the machine being pinged must recognize > tcp echo requests. On my machine RH linux 7.3 I have to configure xinetd > to accept and reply to udp and tcp echo requests. I guess in both these > cases the application service if running handles the request unlike ICMP > where the protocol provides for this facility. [..]
good point... cf: http://www.wetware.com/drieux/pbl/Sys/Admin/netPing.txt I was somewhat surprised that the ping("tcp") method 'failed' on an unvarnished linux box... this leads us into the 'religious' debates about whether one should engage in requirements like; "Specifying the "icmp" protocol requires that the program be run as root or that the program be setuid to root." I have variations on the alternative where I have done the basic open(PING, "ping $derPingFunk $derHost $derPost |") or die ..... for linux/darwin/solaris cf: http://www.wetware.com/drieux/pbl/Sys/Admin/pingIt.txt http://www.wetware.com/drieux/pbl/perlTrick/CBO/PingIt/ precisely to avoid the questions of a) setuid root and/or run as root b) requiring special configuration on far host... Your Mileage May Vary, Void Where Prohibited by Law.... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]