Re: [Exim] Running Commands

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Odhiambo Washington
Dátum:  
Címzett: exim-users
CC: Joseph Kezar, gward
Tárgy: Re: [Exim] Running Commands
* Greg Ward <gward@???> [20011011 18:36]: writing on the subject 'Re: [Exim] Running Commands'
| On 11 October 2001, Joseph Kezar said:
| > I am struggling with this one!
| > What I need:
| >   1) When an email is sent to generate_reply@???
| >   2) It needs to run a command (ie /usr/local/bin/generate_reply)
| >   3) This command takes the email message and parses it for vital info
| >   4)  this command needs to be run as root.(so it can chown $user) this
| > newly created files
| > 
| > Is there a way I can set something simple up in /etc/aliases such as:
| >   generate_reply:    |/usr/local/bin/generate_reply
| 
| Yes, that's exactly what you do.  If your messages aren't getting to the
| script, try making it a simple shell script that does this:
|   cat > /tmp/msg$$


I believe he needs to enclose the script in double quotes:

generate_reply:    "|/usr/local/bin/generate_reply"


Probably the _only_ thing he's missing.


-Wash

--
Odhiambo Washington
Wananchi Online Ltd.,
wash@??? 1st Flr Loita Hse.
Tel: 254 2 313985 Loita Street.,
Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE

Be happy while you're living, for you're a long time dead.
-Scottish Proverb