Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my linux computer :

I can play sound from the motherboard using those commands, for example :

setterm -bfreq 440
tput bel
sleep 0.1
setterm -bfreq 392
tput bel
sleep 0.1

I want to do the same on the same on other computer motherbord : how can I handle this ? I can do :

tput bel | write the_user

but it will pulse the same sound!

share|improve this question

You can try:

{ setterm -term linux -bfreq 440; tput bel; } | write the_user

but the recipient of your fun would need to be using a virtual console to hear various pitches.

share|improve this answer
    
Thanks but the command "setterm -term linux -bfreq 440" will work through SSH ? – anonymous Mar 6 '11 at 12:45
    
@anonymous: If, as I said, the "recipient" is using a virtual terminal (even if you are connected by ssh). If they are connected by ssh, then no, there's not any way. – Dennis Williamson Mar 6 '11 at 13:59
    
write will filter out the sequences that setterm outputs. – grawity Mar 6 '11 at 17:49
    
@grawity: But it could be redirected to the terminal if the sending user has sudo rights. { setterm ... } | sudo tee -a /dev/tty1 – Dennis Williamson Mar 6 '11 at 21:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .