Visit Our UNIX and Linux User Community


Notification after job is done


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Notification after job is done
# 1  
Old 09-05-2016
Notification after job is done

Hello everyone,

I have a server in another country, so I would like to run a notification sound, that I can hear in my computer after a job is finished, I found so many commands, like:

Code:
COMMAND HERE
spd-say 'Done'

But I cannot hear any sound, the command line does NOT return any error, so I do understand that the sound will be done in the remote server, is there any way that I can hear it in my computer?

Thanks in advance
# 2  
Old 09-05-2016
Turn up the volume...
Use a beeper extension cable...

All jokes aside: how do you connect to that computer? How do you start the remote job? Are you able to modify that job? How fast needs that notification to be?
# 3  
Old 09-05-2016
Quote:
Originally Posted by RudiC
how do you connect to that computer?
I am connecting through SSH, using:

Code:
ssh user@IP -p PORT

Quote:
How do you start the remote job?
I open the screen session then type this command:

Code:
ffmpeg -y -i INPUT.mp4 -strict experimental -vf drawtext=fontfile='/usr/share/fonts/truetype/freefont/FreeSansBold.ttf':text='TEXT':x=10:y=10:fontsize=18:fontcolor=white -vcodec libx264 -preset medium -crf 24 -acodec copy OUTPUT.mp4

Quote:
Are you able to modify that job?
Probably, Yes

Quote:
How fast needs that notification to be?
Once the encoding is finished, the notification should be On

Thanks in advance
# 4  
Old 09-06-2016
As I don't see the command being put in background, the ssh connection will stay open during the encoding running? Then, a local beep could be possible via the <BEL> character being printed.
Other sound effects will probably play on the remote computer, as you suspect. You might try opening a network connection from the remote back to your local node to run a sound program.
# 5  
Old 09-06-2016
I tried so many methods that I found in google, but there is not response Smilie
# 6  
Old 09-06-2016
Can be done by a following command
Code:
# echo a Control-g character
echo ^G

or
Code:
printf "\007"

This User Gave Thanks to MadeInGermany For This Post:
# 7  
Old 09-06-2016
I already tried the above methods, I am using Mac and the terminal server is Ubuntu but nothing happen:

Code:
# cat beep.sh 
#!/bin/bash

echo 

printf "\007"


Previous Thread | Next Thread
Test Your Knowledge in Computers #874
Difficulty: Medium
A programming language is homoiconic if a program written in it can be manipulated as data using the language, and thus the program's internal representation can be inferred just by reading the program itself.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Autosys Job: Job did not start

I have submitted an autosys job and force start it. Autosys hit the job 4 times to restart but it did not start and finally I terminate the job. Any idea why the job did not start. Below is the code I executed. 1214 missun0ap /export/home/bzn97r/develop/dswi/jil$ sendevent -E FORCE_STARTJOB... (0 Replies)
Discussion started by: jnrohit2k
0 Replies

2. Shell Programming and Scripting

autosys job configuration for job failure.

We need to configure autosys that when a job fails continously for 3 times, we need to call another job. Is this possible in Autosys, or can anyone advice on the alternative. (2 Replies)
Discussion started by: sangea
2 Replies

3. Shell Programming and Scripting

Script to Start a Job after finding the Old job completed

Hi Experts, I need a script advice to schedule 12 jobs ( SAS Codes execute back ground ). Algorithem: 1. Script checks first job. 2. Finds first job is done; invoke second job. 3. finds second job is done; invoke third job. .. Request you to please assist. (3 Replies)
Discussion started by: Jerald Nathan
3 Replies

4. UNIX for Advanced & Expert Users

if up notification

Hello experts, I have a requirement of notifying my application everytime a network interface is brought up. My application supports Various Unix flavours e.g. RHEL, SLES, AIX, Solaris and Mac OS. I know that SLES supports /etc/sysconfig/network/if-up.d hook scripts that run once an interface is... (2 Replies)
Discussion started by: GajendraSharma
2 Replies

5. AIX

Cron Job notification email

Hi, I'm fairly new to Aix and am looking for some help on the following. I have setup a cron job under root and want it to send the email once it's run to an external email address. I can get it to send the output in an email to me by using mail on the end of the crontab entry. But I would... (1 Reply)
Discussion started by: elmesy
1 Replies

6. UNIX for Dummies Questions & Answers

How to insert child job under a box job?

I have this box job and it contains only one job under it which is to load a file. I want to insert a "File Watcher", "Copy File" to it? Have no clue how to do that...any help plzzz... (4 Replies)
Discussion started by: xejatt
4 Replies

7. UNIX for Dummies Questions & Answers

background job finished notification

In my last job someone gave me the command to put in my .profile that let me know when a job I had running in the background finished. It was a word about 5 char long. I can't remember it! (4 Replies)
Discussion started by: nkeller
4 Replies

8. Solaris

killing a unix job after the job process gets completed

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. Thanks... (7 Replies)
Discussion started by: dtazv
7 Replies

9. Shell Programming and Scripting

killing unix job after the job process completes

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. ... (1 Reply)
Discussion started by: dtazv
1 Replies

10. Shell Programming and Scripting

email notification if job is killed/dies

hi folks, anybody there with suggestions on how to have an email sent to an address (if a certain job (jobA) ever dies. the concern is over the trigerring of sending the email (not the actual sending of the email) 1. is it possible for the job in question, jobA, itself do such a thing... (2 Replies)
Discussion started by: jacob_gs
2 Replies

Featured Tech Videos