'Watch' command in Solaris?

  • Follow


Hi,

Is there a similar program like 'watch' in BSD/Linux for Solaris?
I just want a program that can watch a command like tail on a file to
check for changes.


BR,
Nergal

0
Reply nergal (18) 3/29/2007 6:39:28 AM

nergal <nergal@nergal.se> wrote:
> Is there a similar program like 'watch' in BSD/Linux for Solaris?
> I just want a program that can watch a command like tail on a file to
> check for changes.

I like wots ( http://post.queensu.ca/~curtis/tools/ ) a lot. Using
it since many years; I feed all the logfiles into wots, and let it
distill the really important messages.

mp.
-- 
Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
                      | http://www.par.univie.ac.at/solaris/pca/
Patch Check Advanced  | Analyze, download and install patches for Sun Solaris
0
Reply Martin 3/29/2007 7:12:55 AM


nergal wrote:
> Hi,
> 
> Is there a similar program like 'watch' in BSD/Linux for Solaris?
> I just want a program that can watch a command like tail on a file to
> check for changes.

I'm not that familiar with BSD or Linux, so can you explain what "watch 
a command" means in more detail? Do you mean trace system calls etc.? 
Then there is truss for that in Solaris.
0
Reply ISO 3/29/2007 7:30:25 AM

Thommy M. Malmstr�m schrieb:
> nergal wrote:
>> Hi,
>>
>> Is there a similar program like 'watch' in BSD/Linux for Solaris?
>> I just want a program that can watch a command like tail on a file to
>> check for changes.
You should get it on http://sunfreeware.com/
> 
> I'm not that familiar with BSD or Linux, so can you explain what "watch 
> a command" means in more detail? Do you mean trace system calls etc.? 
> Then there is truss for that in Solaris.
Snippet from man:
watch - execute a program periodically, showing output fullscreen

0
Reply Mike 3/29/2007 7:40:31 AM

"nergal" <nergal@nergal.se> writes:

> I just want a program that can watch a command like tail on a file to
> check for changes.

Try "less /path/to/file" then press "Shift-F".

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
0
Reply Paul 3/29/2007 7:42:30 AM

Mike Roetgers wrote:
> Thommy M. Malmstr�m schrieb:
>> nergal wrote:
>>> Hi,
>>>
>>> Is there a similar program like 'watch' in BSD/Linux for Solaris?
>>> I just want a program that can watch a command like tail on a file to
>>> check for changes.
> You should get it on http://sunfreeware.com/
>>
>> I'm not that familiar with BSD or Linux, so can you explain what 
>> "watch a command" means in more detail? Do you mean trace system calls 
>> etc.? Then there is truss for that in Solaris.
> Snippet from man:
> watch - execute a program periodically, showing output fullscreen

Please forgive me, but can you give an example? Is it like at or cron?
0
Reply ISO 3/29/2007 7:59:31 AM

On 2007-03-29, Thommy M. Malmstr�m <thommy.m.malmstrom@gmail.com> wrote:
> nergal wrote:
>> Hi,
>> 
>> Is there a similar program like 'watch' in BSD/Linux for Solaris?
>> I just want a program that can watch a command like tail on a file to
>> check for changes.
>
> I'm not that familiar with BSD or Linux, so can you explain what "watch 
> a command" means in more detail? Do you mean trace system calls etc.? 
> Then there is truss for that in Solaris.

Basically 'watch' runs a command periodically and shows the output.

'watch' should be available at www.blastwave.org or sunfreeware.com

regards,

--
staf wagemakers

0
Reply Staf 3/29/2007 8:10:12 AM

On Thu, 29 Mar 2007 07:59:31 GMT, Thommy M. Malmstr�m <thommy.m.malmstrom@gmail.com> wrote:
| Mike Roetgers wrote:
|> Thommy M. Malmstr�m schrieb:
|>> nergal wrote:
|>>> Hi,
|>>>
|>>> Is there a similar program like 'watch' in BSD/Linux for Solaris?
|>>> I just want a program that can watch a command like tail on a file to
|>>> check for changes.
|> You should get it on http://sunfreeware.com/
|>>
|>> I'm not that familiar with BSD or Linux, so can you explain what 
|>> "watch a command" means in more detail? Do you mean trace system calls 
|>> etc.? Then there is truss for that in Solaris.
|> Snippet from man:
|> watch - execute a program periodically, showing output fullscreen
|
| Please forgive me, but can you give an example? Is it like at or cron?


Imagine 'top' except running something other than 'ps' to produce the
output.


-- 
Reverend Paul Colquhoun, ULC.    http://andor.dropbear.id.au/~paulcol
     Asking for technical help in newsgroups?  Read this first:
        http://catb.org/~esr/faqs/smart-questions.html#intro
0
Reply Paul 3/29/2007 8:59:04 AM

nergal wrote:
> Hi,
> 
> Is there a similar program like 'watch' in BSD/Linux for Solaris?
> I just want a program that can watch a command like tail on a file to
> check for changes.

I like a freeware program called 'xtail'. You can say "xtail *.log" and 
it will notify you when any change happens to any of *.log. Or you can 
say "xtail <some-dir>" and it will pick up and monitor any files found 
there, including any files created while it's running.

HT
0
Reply Henry 3/29/2007 2:08:50 PM

On 28 Mar 2007 23:39:28 -0700 "nergal" <nergal@nergal.se> wrote:
> Is there a similar program like 'watch' in BSD/Linux for Solaris?

Yes, it's called 'watch'.
-frank
0
Reply Frank 3/30/2007 4:03:51 AM

In article <m2tzw3bcns.fsf@sucksless.local>,
Frank Cusack  <fcusack@fcusack.com> wrote:
>On 28 Mar 2007 23:39:28 -0700 "nergal" <nergal@nergal.se> wrote:
>> Is there a similar program like 'watch' in BSD/Linux for Solaris?
>
>Yes, it's called 'watch'.
>-frank

But I don't see it anywhere on my machine (sol9) -- not even in
opt/csw or opt/sfw.

Maybe it's in only sol-10?

David


0
Reply dkcombs 4/22/2007 12:19:51 AM

David Combs wrote:
> In article <m2tzw3bcns.fsf@sucksless.local>,
> Frank Cusack  <fcusack@fcusack.com> wrote:
> 
>>On 28 Mar 2007 23:39:28 -0700 "nergal" <nergal@nergal.se> wrote:
>>
>>>Is there a similar program like 'watch' in BSD/Linux for Solaris?
>>
>>Yes, it's called 'watch'.
>>-frank
> 
> 
> But I don't see it anywhere on my machine (sol9) -- not even in
> opt/csw or opt/sfw.
> 
> Maybe it's in only sol-10?
> 
> David
> 
> 

I've not done a find, but my path has quite a few places in it:

sparrow /export/home/drkirkby % uname -a
SunOS sparrow 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-80
sparrow /export/home/drkirkby % watch
watch: Command not found.


-- 
Dave (from the UK)

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@althorne.org
Hitting reply will work for a few months only - later set it manually.

http://chessdb.sourceforge.net/ - a Free open-source Chess Database
0
Reply Dave 4/22/2007 12:53:06 AM

11 Replies
929 Views

(page loaded in 0.206 seconds)

Similiar Articles:


















7/21/2012 10:25:17 PM


Reply: