February 26, 2012

linux code help

if ($1)
then
echo "Argument not found: Usage: script filename.conf"
exit
else
date | awk '{print "ping -i " $2 " " $1 " &"}' $1 | sh
fi | tee -a monitoring.log
wait

i tried to add a timestamp (date) to the code but its not working.

Click Here!