I use to
df repeatly to monitor some status. Then I come with the for loop of each shell I use... but it's really painful to change the syntax every time...
Finally I wrote a small script python that work on linux and windows
cmd = " ".join(sys.argv[1:])
clear = ['clear','cls'][os.name == 'nt']
Once you have put this script in your
PATH, you just need to run
monitor ls -al (the script name is monitor) to see the result of ls refreshed every second.
Ctrl + c to interrupt the program