A few days ago I asked Is there a way to make tail -F beep?
Now I want to know if there is any way to use *nix utilities, to beep when a tail -F
stops returning new lines for a while!
I know, I can write a simple application in any language to do this, but I was curious to know if there is a way to do this just by standard (or semi standard) utils.
The goals is to beep when a file (like a log file) no longer grows.
read
and why it doesn't have its own man page. Stillread -t
is very cool, I didn't know there is such a thing. – Ali Nov 30 '11 at 17:12$LINE
toawk
orsod
if I am interested in further manipulations, but just out of curiosity that would be nice to see if there are other solutions maybe involvingawk
orsed
without awhile
andread -t
! – Ali Nov 30 '11 at 17:14read
is a bash builtin function. It's also one of the worst words to search for in the bash man page! :) In the version I have here, it's around line 3350. – cpugeniusmv Nov 30 '11 at 17:18type read
to see what it is. As it is a shell builtin, you can askhelp read
for usage information. – manatwork Nov 30 '11 at 17:28info bash
, thens
for search, then type "`read'" (backtick, "read", apostrophe). Command names, keywords, and so forth are delimited by a backtick and an apostrophe, which makes them relatively easy to search for. – Keith Thompson Nov 30 '11 at 17:54