I would like to know if there is a tool that would enable you to watch how the program output changes live. Something like tail -f
but instead of monitoring the file changes, it would repeatedly call some executable and display it live.
For example, if the tool is caled foobar
and I would call foobar 'ps -Al'
, it would behave kind of like top
– displaying the output in real time.
Best Answer
Try
watch
. From the manpage:Note that "realtime" would have to be approximated by "once a second" (for example) here...