I run some lengthy scripts over SSH, using the default MacOS terminal application. Usually, I leave this terminal running and change virtual desktops, only to forget I left this running.
I would like to have some sort of warning (sound, pop-up, bouncing icon, anything, really) for when the script finishes or dies because of an error.
The issue I am facing is that, because I’m SSHing to another computer, any command I can issue from the script itself will essencially run on the host machine.
Is there a way to have MY terminal to emit some sort of signal?