hello Again,
Please ignore my last comments, its been a long day!!!
Why not try and do the ping from within the code rather than calling an external command, here is some example code that may be useful:
#!perl.exe
use Net::Ping;
use Time::HiRes qw( gettimeofday tv_interval );
$bytes =...