Is there a way to redirect the out to monitor and email , at the moment i have this which just does email
#!/bin/sh
rsh serv -l root '/tools/SITE/etc/bin/sitesync -test' 2>>/tmp/output | mail -s "Output from sync" email@email.com
thanks
Adam
Is there a way to redirect the out to monitor and email , at the moment i have this which just does email
#!/bin/sh
rsh serv -l root '/tools/SITE/etc/bin/sitesync -test' 2>>/tmp/output | mail -s "Output from sync" email@email.com
thanks
Adam
rsh serv -l root '/tools/SITE/etc/bin/sitesync -test' > /tmp/monitor 2>>/tmp/output && mail -s "Output from sync" email@email.com < /tmp/monitor
man tee
thanks for the speedy reply, i did that but nothing happens, it retuned nothing to the screen and noing via email