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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -