1

How to send output to both screen and mail?

view story
linux-howto

http://unix.stackexchange.com – I use the following to send an email at the end of a script. echo "Script finished on `date`" | /usr/bin/Mail -s "Script complete" "[email protected]". However, I want to echo the same message onto the screen as well. How do I do that in the same statement? (HowTos)