unix - Print STDOUT in the middle of 2 Pipes in Solaris(bash) -
http://www.webdesignerdepot.com/rss.htm
i have same issue. command:
./somescript.sh > ../log/scriptlog.log
requires output of command go std out. inside script
command | mailx -s "subject" recipient@somedomain.tld
what :
command | tee > /dev/stdout | mailx -s "subject" recipient@somedomain.tld
where output of command goes stdout( redirected ..log/scriptlog.log file )
and stdin mailx command.
any way that?
tee
sends stdout.
... | tee -a log/scriptlog.log | ...
Comments
Post a Comment