Unix Technical Forum

'Watch' command in Solaris?

This is a discussion on 'Watch' command in Solaris? within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hi, Is there a similar program like 'watch' in BSD/Linux for Solaris? I just want a program that can ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 04:14 AM
nergal
 
Posts: n/a
Default 'Watch' command in Solaris?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 04:14 AM
=?ISO-8859-1?Q?=22Thommy_M=2E_Malmstr=F6m=22?=
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 04:14 AM
Mike Roetgers
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 04:14 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

"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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2008, 04:14 AM
=?ISO-8859-1?Q?=22Thommy_M=2E_Malmstr=F6m=22?=
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-12-2008, 04:14 AM
Staf Wagemakers
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-12-2008, 04:14 AM
Paul Colquhoun
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-12-2008, 04:15 AM
Martin Paul
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-12-2008, 04:15 AM
Henry Townsend
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-12-2008, 04:16 AM
Frank Cusack
 
Posts: n/a
Default Re: 'Watch' command in Solaris?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com