Unix/Linux 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 Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 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


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
Old Unix and Linux 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
Old Unix and Linux 09-10-2002
Neo's Unix or Linux Image
Neo Neo is offline Forum Staff  
Join Date: Sep 2000
Last Activity: 7 October 2015, 8:15 AM EDT
Location: Asia pacific region
Posts: 13,200
Thanks: 690
Thanked 991 Times in 457 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,


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 Linux or Unix Question

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
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 09:53 AM.