helpful amanda script

Greg Rundlett greg.rundlett at gmail.com
Thu Aug 24 01:38:00 EDT 2006


On 8/23/06, Paul Lussier <p.lussier at comcast.net> wrote:
> John Abreau <jabr at blu.org> writes:
>
> > Paul Lussier wrote:
> >
> >> There's likely lots of room for improvement here, not the least of
> >> which is to determine when (and how) to use a pager (more or less,
> >> etc.) based on the number of rows in current terminal vs. the number
> >> of rows of output.
> >> I'd certainly appreciate some feedback on this if anyone out there
> >> uses amanda and finds this useful and/or wishes to help improve it.
> >
> > I used to write while-loop wrapper scripts like that to monitor
> > various things, until about a year ago when I discovered the watch(1)
> > command, which clears the screen and then runs a command repeatedly
> > forever.
>
> Hmm, didn't know about the watch command, very useful.  In this case
> though, I want to parse the output of amstatus and display only
> certain portions of it.  The output of that command can be hundreds of
> lines long at times :)

I am (shudder) on Windows atm, having just added a wireless print
server to the home network so I can't check the man page but I recall
there is an option or two for displaying the changed parts of the
output which really makes 'watch' nice for displaying the output even
when it's large.

As a funny aside: I instinctively opened a new browser tab and typed
'man watch' which under Konqueror would have given me the free
information that I was looking for, but on a Windows system that
action took me to a website selling Tag Heuer wrist watches.
Obviously Windows associates user actions with flexing your credit
card.

> Thanks, though, I bet 'watch --interval=1 cat /proc/mdstat' is better
> than my homegrown for-loop for watching a raid set rebuild :)
>
> --
> Seeya,
> Paul
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>



More information about the gnhlug-discuss mailing list