i am trying to run a script with the output to be emailed and watched(monitored), i try using this code:
this are the output: >emailmessage echo "output here" >>emailmessage /bin/mail -s "$SUBJECT" "$EMAIL" < $emailmessage
and an email will be sent with the results but wont be displayed on my terminal, for now i use
echo "email sent!" so i can be notified that the script was done running. How can i send it out and display it as well?