05-14-2002
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 (unlikely perhaps, but if possible would be the most elegant)
2. we could set up another job (jobB) to monitor jobA and have it email us if it detects jobA has died. that however raises the question of what happens if jobB itself is killed/dies before jobA.
any guidance will be greatly appreciated
thanks
jacob
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I have been a member for almost a year now. I have always recieved email notifications when I select "subcribe to this thread" at the bottom of posts that I reply to.
However, over the last month or so, I have not been recieving email notification of replys to posts I respond to.
I have... (6 Replies)
Discussion started by: Kelam_Magnus
6 Replies
2. UNIX for Dummies Questions & Answers
Hi.
I want to add email notification so when the my script finishes it sends out an email of the results to our team. If there are errors the subject on the email should say there were errors.
If any having idea/sample scripts pls share with me. (2 Replies)
Discussion started by: redlotus72
2 Replies
3. UNIX for Dummies Questions & Answers
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
4. Programming
Hi,
I have a requirement.
Scenario:
A parent job invokes a child job and gets killed. The child becomes orphan and gets attached to init. Child job is removed from the pid table as soon as it gets completed.
Requirement is i need the status of the child job even after the parent job is... (7 Replies)
Discussion started by: anjul_thegreat
7 Replies
5. Shell Programming and Scripting
Hey guys
Just need some help with crontab.Iam looking for a script that will alert particular user about its change through sendmail.We are using bash here.
--CoolKid (3 Replies)
Discussion started by: coolkid
3 Replies
6. Solaris
I would like to setup a Cron job to check weather X process is running or not. if it is not running then start that X process with a log message....
can any one help writing a script?
thanks (3 Replies)
Discussion started by: chandravadrevu
3 Replies
7. AIX
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
8. Shell Programming and Scripting
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:
COMMAND HERE
spd-say 'Done'
But I cannot hear any sound, the command line does NOT return any error,... (6 Replies)
Discussion started by: Abu Rayane
6 Replies
9. Shell Programming and Scripting
Hi All,
I need write a linux script which emails each record to the employee manager email-id which will be specified inside the file.
Each employee can have a different manager too..
file contain 200 to 300 records
Employee ID, Employee Name, Employee Email-ID, Manager, Manager... (4 Replies)
Discussion started by: tradingspecial
4 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am getting error below when testing email. is there a way I can configure email on Solaris?
SunOS -s 5.10 Generic_147440-04 sun4u sparc SUNW,SPARC-Enterprise
echo "hello" | sendmail -v abcd
WARNING: local host name (-s) is not qualified; see cf/README: WHO AM I?
abcd... Connecting... (1 Reply)
Discussion started by: roshanbi
1 Replies
LEARN ABOUT SUSE
capisuitefax
CAPISUITEFAX(1) CAPISUITEFAX(1)
NAME
capisuitefax - sending faxes with the CapiSuite default scripts
SYNOPSIS
capisuitefax [-q] [-n] [-u user] [-A adr] [-S subj] -d number file...
capisuitefax [-q] -a id
capisuitefax -h
capisuitefax -l
DESCRIPTION
The default scripts for CapiSuite come with the tool capisuitefax for sending faxes.
It will be called with some parameters telling it which file to send (it currently only supports PostScript and PDF files) and to which
number. It will then enqueue the job converted to the right format into the send queue from which it's collected by another CapiSuite
script and sent to the destination. If the sending was completed successfully or failed finally after trying for some time, the according
user will get an email telling him/her what has happened.
OPTIONS
-a id Abort the job with the given id. To get a job id, use the -l option.
-A adr The addressee of the fax. This option is (currently) only for informational purposes and will be quoted in the sent status mail.
-d number
The number which should be called (destination of the fax)
-h Show a short commandline help
-l Shows the jobs which are currently in the send queue.
-n Don't use the configured dial prefix for this job. Useful for internal jobs.
-q Be quiet, don't output informational messages
-S subj
A subject for the fax. This option is (currently) only for informational purposes and will be quoted in the sent status mail.
-u user
Send fax as another user. Only allowed if capisuitefax is called as user root. This is mainly helpful for realizing extensions to
e.g. do network faxing.
file...
One or more PostScript/PDF files to send to this destination. More than one PostScript file will produce several separate fax jobs.
SEE ALSO
capisuite(8), capisuite.conf(5), fax.conf(5), answering_machine.conf(5)
AUTHOR
Gernot Hillier <gernot@hillier.de>.
CAPISUITEFAX(1)