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.

For example, I threw together a script to parse the openvpn logs and
print a report of who's connected and for how long, then I run it
with the watch command:

    watch --interval=10 whoson-ovpn

Every 10 seconds, watch(1) clears the screen and then runs the script.


--
John Abreau / Executive Director, Boston Linux & Unix
ICQ 28611923 / AIM abreauj / JABBER [EMAIL PROTECTED] / YAHOO abreauj
Email [EMAIL PROTECTED] / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss

Reply via email to