Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.