watch command not running on a script

591 views Asked by At

I am trying to run a script with watch:

watch -n 10 /Users/user/bin/my_script

however it does not run the whole script. There are three lines in the script and watch stops running after the first one.

When I run the script by itself without the watch command it runs the whole script. Why could this be?

0

There are 0 answers