LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (http://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Linux Watch vs BSD Watch (http://www.linuxquestions.org/questions/%2Absd-17/linux-watch-vs-bsd-watch-292342/)

blueCow 02-19-2005 01:49 PM

Linux Watch vs BSD Watch
 
Is there a command in FreeBSD that will accomplish the same thing as the linux command watch.

For those of you wo may not know what each command does:

watch (BSD) - snoops a given tty
watch (Linux) - makes a static command like 'ps' or 'who' able to update in realtime.

Thanks.

Clark Bent 02-19-2005 07:04 PM

I am not familar with that program...but perhaps you will find this useful:

$ whereis watch
watch: /usr/sbin/watch /usr/share/man/man8/watch.8.gz /usr/src/usr.sbin/watch

mj2000 08-12-2009 02:17 AM

cmdwatch
 
its called cmdwatch on FreeBSD.
use whereis cmdwatch to find the ports directory

uselpa 08-16-2009 03:30 AM

or gnuwatch on OpenBSD

anomie 08-16-2009 05:35 PM

Quote:

Originally Posted by blueCow
Is there a command in FreeBSD that will accomplish the same thing as the linux command watch.

To be honest, on non-Linux operating systems (e.g. FreeBSD, Solaris), I simply use the following from a Bourne-type shell:
Code:

while true ; do clear ; <foo command here> ; sleep 5 ; done


All times are GMT -5. The time now is 08:11 AM.