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.
readand why it doesn't have its own man page. Stillread -tis very cool, I didn't know there is such a thing. – Ali Nov 30 '11 at 17:12$LINEtoawkorsodif I am interested in further manipulations, but just out of curiosity that would be nice to see if there are other solutions maybe involvingawkorsedwithout awhileandread -t! – Ali Nov 30 '11 at 17:14readis 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 readto see what it is. As it is a shell builtin, you can askhelp readfor usage information. – manatwork Nov 30 '11 at 17:28info bash, thensfor 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