I use ssh lots, often doing long-running builds on other machines.
I'd like to know when a compile or other long-running process fails on a remote machine, and my preference for feedback would be audio.
Is there a way I can get remote audio forwarded to my local machine? I'd prefer something that integrates with ssh -X if possible, but I'd like to know about any options that exist.
The system bell works through ssh; or you can tunnel ESD, NAS, or whatever audio system works for your system. On my systems I have a tiny program called
beep
installed that rings the system bell.There are multiple sound servers that can forward sound over TCP: esd, JACK, NAS, Pulseaudio... If you decide to use one, your main problem will be to make sure that you have the same on all machines, or else to arrange for forwarding multiple systems and translating them locally.
For your use case, I think it would be simpler to send only text through the ssh channel, and locally play a sound when you receive a notification from the remote end. For example (
nc
is OpenBSD netcat):