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

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

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -