Is there a way to make tail -F or less beep (ring the bell in a terminal) when new data comes in (a new line is added to the file).
Or is there any other unix utility to do this on a linux or mac.
|
|
|
An idea migth be to pipe the output of But there is propably an easier solution if you use |
|||||||||||||||
|
|
if you use GNU http://www.gnu.org/software/screen/manual/html%5Fnode/Monitor.html#Monitor edit: just had to add this, since you mentioned mac os x just for fun, if you were looking for something in particular, you can use Mac OS X's http://www.hmug.org/pub/MacOS_X/BSD/Administration/Log/logcheck/ And use it in a script like:
|
|||||||||||||
|
|
You could use multitail. It is an enhanced tail that supports command execution on regular expression match. E.g. the following command plays a sound and opens an xmessage window each time a martian source packet is logged.
|
|||
|
|
|
Just for the record, as @Nils suggested I am using The
works on my mac (I enabled "audible bell" and "visual bell" in my Terminal\preferences\advanced). |
|||||||
|
|
You can try |
|||
|