LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-02-2007, 05:52 AM   #1
btaylor1988
Member
 
Registered: Nov 2005
Location: England
Distribution: CentOS, Fedora
Posts: 79

Rep: Reputation: 15
Internal Beep


hi everyone,

a bit of an odd question here but i would love to get this working. i have a server at home and would like to issue a command into putty on my other PC via SSH to make the internal speaker on the server beep, all of my attempts to make a Perl script to make it beep just result in the speaker on my PC beep and not the internal speaker that should beep on my server.

any ideas?
 
Old 07-02-2007, 08:07 AM   #2
mallux
Member
 
Registered: Jun 2007
Location: London, UK
Distribution: Ubuntu, RHEL, Fedora
Posts: 46
Blog Entries: 1

Rep: Reputation: 16
A bit nasty and insecure but how about
Code:
$ ssh root@myserver "echo -e \07 >/dev/console"
 
Old 07-02-2007, 09:02 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
echo -e \07 >/dev/console
Does not beep on my box

This does beep:
printf "\x07" >/dev/console

And THIS works:
echo -e '\07' >/dev/console

In your example, the fact that the whole command is quoted makes it work????
 
Old 07-02-2007, 10:02 AM   #4
mallux
Member
 
Registered: Jun 2007
Location: London, UK
Distribution: Ubuntu, RHEL, Fedora
Posts: 46
Blog Entries: 1

Rep: Reputation: 16
pixellany- yes you are right, you need some extra quotes around the \07 as you say.

My point was that in order to make the remote system beep, you need to send the relevant characters to the remote console (and not your local one), hence the quotes surrounding the whole ssh command.

EDIT: here is the updated command in full:
Code:
$ ssh root@myserver "echo -e '\07' >/dev/console"

Last edited by mallux; 07-02-2007 at 11:13 AM.
 
Old 07-04-2007, 08:23 AM   #5
btaylor1988
Member
 
Registered: Nov 2005
Location: England
Distribution: CentOS, Fedora
Posts: 79

Original Poster
Rep: Reputation: 15
none of these commands seem to work for me, ive tried on both server i have yet neither comes back with any sound.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beep off! X11 Linux - General 9 07-17-2008 11:08 AM
How to disable the warning sound "beep, beep" ICO Red Hat 1 04-04-2006 01:59 AM
Installation of internal HP DAT 40i DDS internal tape drive netkepala Linux - Hardware 3 11-08-2004 12:22 PM
Beep Beep! Linux~Powered Linux - Hardware 3 05-18-2004 06:28 AM
Beep pixelV Slackware 10 01-04-2003 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:10 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
Open Source Consulting | Domain Registration