I installed Cygwin on my Windows XP to use some of its commands. Now I what to check a file every 2 minutes and want to use watch for this purpose but I see that Cygwin has no such command. Is this really true? what can I do instead?
Cygwin has no watch command
cygwin;watch
Best Answer
There is
watch
in cygwin. But it isn't installed by default. You need to installprocps-ng
package to appearwatch
. (you can run cygwin installer again and it allows to install only the missed packages without reinstalling the whole cygwin)Instead of
watch
you can use simple cycle like:where
check
is your command of choice.