Hi,
Please help me out!
In the man pages they dont talk about any options that can be used to terminate a running 'watch' command. Do you know a way of terminating the command using an option?
Thanks
Hi,
Please help me out!
In the man pages they dont talk about any options that can be used to terminate a running 'watch' command. Do you know a way of terminating the command using an option?
Thanks
watch runs until interrupted.
IF you are at the command line, CTRL-C will stop the command - unless watch is called from inside a shell script with SIGINT trapped. (bash or ksh trap command)
If watch is a separate process,
kill -9 pid
where pid == process id of the process will terminate the process.