Sharat Chandra
Sharat Chandra

Reputation: 4554

how to get a sound notification in terminal once a job has been completed

I run jobs on a remote machine . The jobs take a few mins to complete and I'd like a sound notification on my local machine in order to know that the job has been completed . Can anybody suggest a command if exists, or a tool that does this ?

Thanks

EDIT : I run jobs on remote machine, but need a sound notification (which has to obviously happen on local machine) upon completion ! Is that possible ?

Upvotes: 2

Views: 720

Answers (1)

trycatch
trycatch

Reputation: 578

Are you saying you run them one-by-one from the command line? I'm not in Linux atm, so I can't verify this, but I believe the bell escape character - "\a" - works in bash, so you should be able to do something like:

./dojob; echo "\a"

Again, this is off the top of my head, so test it with something like opening gedit followed by a bell or something.

Upvotes: 4

Related Questions