A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

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!