bash - Redirect output to two unnamed pipe Linux -


i in bash script:

tail -n0 -f /var/log/kern.log > $pipe1 , $pipe2 

where $pipe 2 unnamed pipes. know can done using tee command not work.

this should work:

tail -n0 -f /var/log/kern.log | tee "$pipe1" "$pipe2" >/dev/null 

the tee output being redirected /dev/null , prevented printed on terminal.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -