Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 04-26-2010, 09:07 PM   #1
LQ Newbie
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
Question using Linux write command and ringing system bell

I have made this bash script program that i run while logged into an ssh server, (while in the linux command terminal). The username "jking" would be another person logged into the same ssh server. I normally use this to send messages to other user's command terminal, but they don't always know they have gotten the message. Is there any way I could ring their computer's bell when the message is sent? would i need, for example, jking's computer's address such as ??

your help is GREATLY appreciated! THANKS!!


#john doe


write jking << EOF
>"this is sent message"

Old 04-27-2010, 08:15 AM   #2
Registered: May 2009
Distribution: Debian wheezy
Posts: 252

Rep: Reputation: 31
To ring the terminal bell (which may not work on newer computers) you should write the ascii "BEL" character (07, 0x7, 7) to their terminal. If you are informing local users, you may want to make a script that finds and directly writes to their terminal. Otherwise, I don't know if "write" will send binary data.


bell, command, system, write

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
When I write a C program and use system command beckettisdogg Linux - Newbie 5 03-09-2010 09:48 AM
route system bell (system beep) through ALSA... mr.v. Linux - Software 1 07-03-2006 07:26 AM
Mepis - system bell satinet MEPIS 2 03-09-2006 04:23 AM
System bell but no sound __spc__ Linux - Hardware 2 03-02-2006 12:59 AM
No sound system bell-9.2 akihandyman Mandriva 1 02-11-2004 06:34 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:44 AM.

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