Email alert after termination


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Email alert after termination
# 8  
Old 09-21-2017
I don't understand half your question, and you didn't bother to answer mine, so we are at an impasse.
# 9  
Old 09-21-2017
Sorry I did actually answer but it did not upload my answer from my phone, so what I said is that i will have my administrator install the email. After that how should I proceed with my script.
# 10  
Old 09-21-2017
Code:
script | sendmail "email@address"

Beyond that, I will need more detail from you.

If you don't have a computer, you will have great difficulty implementing any of our answers in any case.
# 11  
Old 09-21-2017
I have a computer core i7, all good. So the details are that I am running a long calculation on a program called gaussian on UNIX, when the calculation finishes it either has "normal or error termination" on the output.log file produced. What I want is to automate an alert the minute this is produced.
# 12  
Old 09-21-2017
Code:
script
sendmail "email@address" < output.log

# 13  
Old 09-21-2017
that script does not specify, when it sends, what time or if the output has terminated already...
# 14  
Old 09-21-2017
The email gets sent once 'script' terminates because shell scripts run one line at a time.

Emails include a time by definition.
This User Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Email Alert in UNIX

Hi There I have to wrote a script where I am able to echo a result of an SQL script, however I want to be able to send an email to myself when it is more than 0 (so whenever a value is returned) is this possible? I tried one way from looking on the web but this didn't work, I have added my... (8 Replies)
Discussion started by: simpsa27
8 Replies

2. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

3. Shell Programming and Scripting

email Alert

Hello, I want a script that will scan the file /etc/httpd/conf/httpd.conf and the folder /etc/httpd/libexec/ -bash-2.05b# grep mod_r /etc/httpd/conf/httpd.conf LoadModule rewrite_module libexec/mod_rewrite.so AddModule mod_rewrite.c -bash-2.05b# -bash-2.05b# find... (4 Replies)
Discussion started by: fed.linuxgossip
4 Replies

4. Shell Programming and Scripting

Email alert script

I need to code a script, which will run via cron, every 30 minutes. The script will read a file containing a date&time and number (which represents disk space). The file gets appended to every 30 minutes. Here's a sample of the file: CPU 1:04/25/02 1:00 am:1972554 CPU 1:04/25/02 1:30... (1 Reply)
Discussion started by: moon
1 Replies
Login or Register to Ask a Question