I'm connecting using OpenSSH to a Linux server where I have a tmux session where I do certain compiling work which takes a long time. Now I would like to be get right away a notification on my Linux client (the computer I'm connecting from) once a certain command which takes a long time finally is complete.Locally, I know of several ways of how to get notified using a pop-up, playing something,  (1), (2) by running a certain command. Now I would need to do the same remotely. A perfect solution would be some sort of feedback channel right in ssh but I'm not aware of any such functionality.And please no email-based solution as suggested in (3). I'm getting already too many work emails and I'm trying to dial down the amount of emails for something just to acknowledge but not for reading, storing, forwarding or replying to (for this I even created a separate email account for which I don't get real-time notifications).https://superuser.com/questions/345447/how-can-i-trigger-a-notification-when-a-job-process-endshttps://askubuntu.com/questions/277215/make-a-sound-once-process-is-completeAlert when running process finishes
Notification that remote process completed (but no email)
ssh;openssh;notifications
The simplest solution is to use the exit from tmux, by issuing a tmux detach, to close the ssh connection, then send a notification, and then reconnect and attach back to the tmux. Eg with the scriptssh -t remote tmuxnotify-send donessh -t remote tmux attachYou run tmux, and start off your long-running command, then type-ahead the commandtmux detachwhich will run when the long command is done. This will close tmux, close the ssh, and the notify-send will show your desktop message. A new ssh will reattach exactly where you left off.