The simple ping command
Hi all,
Got a situation that seems funny to me. I wrote a simple perl script
that performs a ping command to a certain address (This is on a
IMAC).
See below
# Varible definitions
$monivest_ipaddress = "192.168.32.111";
$monivest_ipresults = "monivestip.txt";
#
#-----------------------------------------------------
system "ping -c 15 $monivest_ipaddress > $monivest_ipresults";
END;
***************************
When I use the full path to run the script it works fine. When I use the
./ and the file name it works fine. Now when I put it in cron I get the
following message.
sh: ping: command not found
Can someone tell me what is going on and how I may fix it.
Thanks
Bill