Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Email to a process


 
Thread Tools Search this Thread
# 1  
Email to a process

Hi,

I want to send a mail to a unix process.Is that possible if so what will be the email id assuming my process name is "sampleprocess".
Also when do we normally send mails to a process
# 2  
well there are 2 ways to get mail to software.

1) the software is listening for communication on a port.
2) the software is setup to read all incomming mail for USERX and will strip out all the needed info for processing.
# 3  
Many people simply pipe mail received by either an MTA or MUA to a process. An MTA, such as sendmail, can receive mail and pipe it to a process. Often, mail is received by an MTA and sent to a user mailbox via a local MUA, and the MUA forwards the mail, via a pipe, to the standard-in.

Often, in a .forward file in a user directory has something like,

"|/home/user/bin/myprocess".


Or, in a file like the sendmail aliases file:

joe.user: "|/home/user/bin/myprocess"


There are many reasons to do this, a person can simply send mail to a host and in the message have embedded tokens that could be used for anything imaginable... for example, you could send a message to a user aliase and have an embedded command (with embedded security) telling your home computer to turn off the lights in your house (if you had a interface to your home lighting)....

You can literally do anything you can imagine by sending mail to a process.... your imagination is the limit.... you could send mail to our home computer and with an embedded token that could be used by a process to activate a video camera, another example.
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Script to send email if Java process was done
Nageswara Reddy
Hi Team, I need script to send notification if java process was down. Can you please help on this. Thanks in adance. Regards, Nagesh... Shell Programming and Scripting
1
Shell Programming and Scripting
Using top command to email if process is exceeding 25% and sending an email alert if so
jay02
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...... Shell Programming and Scripting
8
Shell Programming and Scripting
Script to Send Email to a user when an admin kills process
JoeGazz84
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...... Shell Programming and Scripting
2
Shell Programming and Scripting
sending email as background process
satnamx
Hi All, Solaris Bash v3x I have a script that accepts an error code, and if the error code is not 0 then an email is sent using mailx to details the error. I want to be able to implement the functiuonlity whereby i can send the email in a background process so the script can continue with...... Shell Programming and Scripting
3
Shell Programming and Scripting
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)
Vetrivela
Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words...... UNIX for Advanced & Expert Users
2
UNIX for Advanced & Expert Users

Featured Tech Videos