linux - why doesn't watch work when piping the output of fortune into cowsay -
cowsay silly linux tool displaying cow saying given text in terminal.
$ cowsay hello
fortune silly linux displaying "random" quote in terminal.
$ fortune
both of these commands can repeatedly ran in terminal using watch e.g.
$ watch cowsay hello $ watch fortune
additionally these 2 commands can combined cow says "random" quotes. piping output of fortune cowsay.
$ fortune | cowsay
however combination of use of watch , piping output of fortune cowsay doesn't anything.... i.e. hangs until process ended
$ watch fortune | cowsay
does know why?
with watch fortune | cowsay
piping output of watch fortune
cowsay
. want watch
value of fortune
piped cowsay
should quote watch whole command execute as
watch 'fortune | cowsay'
Comments
Post a Comment