How do I make 'tail -f' beep?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do I make 'tail -f' beep?
# 1  
Old 10-13-2005
How do I make 'tail -f' beep?

Hi,

I'm moniroting numerous logs in my new job (tail -f JOE.log | grep ALERT) and I want to be able to make the Terminal BEEP when ever something comes up.

Is this something I can do easily?

Any help with the above (or an alternative) would be appreciated, so I can stop staring at the screen all day Smilie

THANKS!
# 2  
Old 10-13-2005
You have follow turned on for tail, I dunno if this will work for you but
Code:
beep="\007"
tail mfile.log | grep  ALERT
if [ $? -eq 0 ]; then
   echo "$beep"
   tail mfile.log | grep ALERT
if

 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

A Function To Create A 1 Second Sinewave WAVE Beep File In Python.

sinebeep.py Creating an audio WAVE file called... beep.wav ...that can be played using almost ANY audio player available. This simple DEMO snippet of code generates a 1 second sinewave WAVE file. It IS saved inside the CURRENT drawer so that you can find it... ;o) Note that the... (1 Reply)
Discussion started by: wisecracker
1 Replies

2. Shell Programming and Scripting

Joining multiple files tail on tail

I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250. I would like to join all 250 of them together tail by tail as follows. For example stat.1000 a b c d e f stat.1001 g h i j k l So that my output... (2 Replies)
Discussion started by: kayak
2 Replies

3. Slackware

System audible beep

I have tried everything with sounds on Slackware and after over a decade am at the end of it. I have uncommented /sbin/modprobe pcspkr in rc.modules. I have commented blacklist pcspkr in /etc/modprobe.d/blacklist.conf I have set bell-style audible in /etc/inputrc and I still can't get echo... (3 Replies)
Discussion started by: slak0
3 Replies

4. Ubuntu

I can't make my pc speakers beep

I don't know why, but when I issue echo -e '\a' or beep. I get only some sound, set in my OS (Ubuntu Karmic). I tried to run these on Lenovo Y510KA and Lenovo S10-2. Is there another way to make my laptops beep?.. (3 Replies)
Discussion started by: Sapfeer
3 Replies

5. UNIX for Dummies Questions & Answers

How to get ride of the BEEP in Solaris

Hello, I did a search on this forum and a global search to try and find out how to disable that annoying beep that you get when you mistype or hit the esc key in VI and i didn't have that problem last week. I'm using Solaris and bash shell and i've put these commands into my .profile file: ... (2 Replies)
Discussion started by: bobk544
2 Replies

6. Linux

the old question: how to disable the beep ?

still the old question (didn't find the satisfied answer in the forum) how to disable the awful beep in linux workstation? i tried this: /etc/inputrc -〉set bell-style none but it can only disable the beep whenever you input wrongly in the console. in some othercases, i still can hear... (1 Reply)
Discussion started by: princelinux
1 Replies

7. UNIX for Dummies Questions & Answers

Need to shut off beep

I need to know how to turn off the beep in my unix environment. I tried with the Common Desktop Environment on solaris but it didn't work. I used to know the environment variable to set but I have forgotten it. (1 Reply)
Discussion started by: jpedicone
1 Replies

8. HP-UX

Turn off awful beep

. (1 Reply)
Discussion started by: Driver
1 Replies

9. UNIX for Dummies Questions & Answers

no beep in shell??

hiho, who has an idea how i can tell my shell that it should not beep on errors or when i'm using the TAB in bash to complete noone needs to know when i make mistakes ;-) solaris 9 (SPARC) bash 2.05 thx a lot Preßy (1 Reply)
Discussion started by: pressy
1 Replies
Login or Register to Ask a Question