This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: port of "watch"?


On Mon, 7 Oct 2002, Scott Prive wrote:

> Is anyone aware of a port of "watch" to Cygwin?
>
> For the curious, watch is a standard (?) tool on Linux which re-executes
> a command at 2 second intervals (configurable).
> ex: watch "ls -l"
> This is more convenient than looping code on the shell.
>
> On Linux, this is part of procps:
> [root@redhat root]# rpm --whatprovides -q `which watch`
> procps-2.0.7-21
>
> Thanks,
> Scott

Scott,

There is a procps package available for Cygwin...
If you don't want to install the whole package, use the attached script
(which took about 15 minutes to write) for similar functionality (minus
difference highlighting).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51

Attachment: watch
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]