Mail looping script and automation help
I decided to make a rather simple looping script, however for some reason i can't automate the . and enter. Those are required to send the emails from the terminal. I tried using the \n but nothing.
Thanks for the help, heres the script.
for (( c=0; c<2; c++ )) do
echo "Security Breach!" >> $MESSAGE
echo "Time: `date`" >> $MESSAGE
/usr/bin/mail -s "$SUBJECT" "$TO"