Email to a process | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Email to a process

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-10-2002
xsriniva xsriniva is offline
Registered User
 
Join Date: Sep 2002
Last Activity: 25 June 2004, 6:45 AM EDT
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 09-10-2002
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
 
Join Date: May 2001
Last Activity: 24 March 2008, 9:43 PM EDT
Location: Chicago IL, USA
Posts: 1,006
Thanks: 0
Thanked 2 Times in 1 Post
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.
Sponsored Links
    #3  
Old 09-10-2002
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 2 October 2014, 4:07 AM EDT
Location: Asia pacific region
Posts: 13,023
Thanks: 522
Thanked 875 Times in 402 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using top command to email if process is exceeding 25% and sending an email alert if so jay02 Shell Programming and Scripting 8 03-02-2012 11:36 AM
Script to Send Email to a user when an admin kills process JoeGazz84 Shell Programming and Scripting 2 09-02-2011 10:57 AM
new to ldap, send email to a ou or group, and see a list from email client V4705 UNIX for Dummies Questions & Answers 0 01-27-2011 09:49 PM
sending email as background process satnamx Shell Programming and Scripting 3 08-18-2009 04:39 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 09:43 AM



All times are GMT -4. The time now is 04:24 AM.