Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Script to Send Email to a user when an admin kills process

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-02-2011   -   Original Discussion by JoeGazz84
JoeGazz84's Unix or Linux Image
JoeGazz84 JoeGazz84 is offline
Registered User
 
Join Date: Sep 2011
Last Activity: 5 April 2012, 4:58 PM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Script to Send Email to a user when an admin kills process

Can anyone create or give me a script that I can use to email a user automatically when I kill one of their processes?

Or

Can you give me a script to allow me to email a user (entering email manually) when a process is killed? Like showing what the PID was and a reason the admin killed it? Is this possible?
Sponsored Links
    #2  
Old Unix and Linux 09-02-2011   -   Original Discussion by JoeGazz84
psshah's Unix or Linux Image
psshah psshah is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 12 July 2012, 4:59 PM EDT
Posts: 55
Thanks: 5
Thanked 5 Times in 5 Posts
Yes, it is possible.
But, I am afraid, no one has enough time to write down a script for you.
Why don't you try out by yourself and reply back if you face any issue?
Sponsored Links
    #3  
Old Unix and Linux 09-02-2011   -   Original Discussion by JoeGazz84
h@foorsa.biz's Unix or Linux Image
h@foorsa.biz h@foorsa.biz is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 22 August 2017, 9:15 AM EDT
Posts: 568
Thanks: 7
Thanked 47 Times in 45 Posts
I assume that you have are a regular UNIX user or even have some basic shell scripting knowledge if so,
Try to adapt the following scripts posted here and here to satisfy your needs.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Write a scripts to kill idle user for 60 min. & email user list to admin in text file sumit30 Shell Programming and Scripting 4 04-02-2011 11:05 PM
Script to send email after comparing the folder permissions to a certain permission & send email nairshar Shell Programming and Scripting 2 12-07-2010 09:22 PM
Send email as a different user than the user logged in rakeshou UNIX for Advanced & Expert Users 1 02-17-2009 01:12 PM
How to get rid of message when script kills process it started? cmarkle Shell Programming and Scripting 1 06-11-2008 12:00 AM
Send email to user when condition met *Jess* Shell Programming and Scripting 4 06-29-2006 12:34 AM



All times are GMT -4. The time now is 05:18 AM.