Re: [LUAU] watchdog to make sure a log file is growing

2005-03-30 Thread Jim Thompson
You could probably write something shorter in Perl or Python, but this is Unix, so we'll use 'C'. (I should write this in lisp just to show off how short programs are in lisp, but I doubt there are three other lisp hackers in the state.) You'll want to look for the following code and do

Re: [LUAU] watchdog to make sure a log file is growing

2005-03-30 Thread Jim Thompson
Jim Thompson wrote: case ':': /* -f or -o without operand */ obviously the comment should say /* -f or -t without operand */ thats what I get for cut-n-paste, eh?

Re: [LUAU] watchdog to make sure a log file is growing

2005-03-30 Thread Tim Newsham
(I should write this in lisp just to show off how short programs are in lisp, but I doubt there are three other lisp hackers in the state.) I'm sure you could find at least three. I goof around with lisp from time to time. This program would also be quite short in python (and probably as

Re: [LUAU] watchdog to make sure a log file is growing

2005-03-30 Thread Matt Darnell
You could probably write something shorter in Perl or Python, but this is Unix, so we'll use 'C'. (I should write this in lisp just to show off how short programs are in lisp, but I doubt there are three other lisp hackers in the state.) You'll want to look for the following code and do

Re: [LUAU] watchdog to make sure a log file is growing

2005-03-30 Thread Jim Thompson
Matt Darnell wrote: Thanks for this. Must be nice to be able to whip up a C program that fast! Matt, He mea 'ole. I've been writing 'C' (on Unix!) since I was a freshman at BYU in 1980. I'm sure you've forgotten more about telephony than I'll ever know about Unix. :-) Jim

[LUAU] watchdog to make sure a log file is growing

2005-03-29 Thread Matt Darnell
Aloha, Does anyone know of a daemon or script that can be run to make sure that a log file is growing? This log file grows to over 300MB in 24 hours growth is guaranteed second to second. I would like to now when the file does not grow for a five second period. Sending out emails when it