LinuxQuestions.org
Visit Jeremy's Blog.
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 04-26-2010, 09:07 PM   #1
i_have_a_question
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 10.43.132.254 ??

your help is GREATLY appreciated! THANKS!!

========================================================

#!/usr/bin/sh
#3/23/10
#john doe

clear

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

done
==========================================================
 
Old 04-27-2010, 08:15 AM   #2
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 244

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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 06:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration