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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -