LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2004, 05:46 AM   #1
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
beep does not work


Hy!

I would like to make my server beep if a script gets to a special point:
-------------------------------------
if ( ! /bin/fuser -sn tcp 389); then
beep
fi
-------------------------------------

There is no beep coming!

What should i do ?

Thanks!
 
Old 05-14-2004, 06:24 AM   #2
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Original Poster
Rep: Reputation: 32
ok

I found

echo 'beep'

or

echo '\a'

is there something nicer ???
 
Old 05-14-2004, 08:35 AM   #3
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Nicer? If you really want to use the command 'beep' then you can write a tiny script and throw it in your path:

#! /bin/sh
echo '\a'
 
Old 05-14-2004, 12:19 PM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 110Reputation: 110
Quote:
#! /bin/sh
echo '\a'
Should use '-e' option for 'echo', otherwise it will just print \a.
Like this:
Code:
#!/bin/sh
echo -e '\a'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beep off! X11 Linux - General 9 07-17-2008 12:08 PM
looking for a beep lungsucker Programming 3 07-11-2005 09:01 AM
Beep Beep! Linux~Powered Linux - Hardware 3 05-18-2004 07:28 AM
why beep doesn't work? eugeny Mandriva 2 05-17-2004 02:14 AM
Beep pixelV Slackware 10 01-04-2003 03:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration