•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 391,548 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,566 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 1243 | Replies: 1
![]() |
•
•
Join Date: Jan 2006
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I need to do something I'm told that is relatively easy to do, but I can't find specific instructions on how to do it.
I need a way to look at incoming emails and run commands based on key words in them.
For example, incoming email:
Subject: Thing# 123
Body: delivered
when sent to dostuff@mydomain.com will run the command:
php -q ./app.php 123 setstatus="delivered"
...somebody mentioned something about cron and sendmail, blah blah. but I'm a noob, I need step-by-step help.
I'm using Apache on a remotely hosted account, I have SSH access.
I need a way to look at incoming emails and run commands based on key words in them.
For example, incoming email:
Subject: Thing# 123
Body: delivered
when sent to dostuff@mydomain.com will run the command:
php -q ./app.php 123 setstatus="delivered"
...somebody mentioned something about cron and sendmail, blah blah. but I'm a noob, I need step-by-step help.
I'm using Apache on a remotely hosted account, I have SSH access.
Rewrite rules for sendmail are what you're looking for:
http://www.faqs.org/docs/linux_network/x14923.html
Then use this link to help you with cron...or use a X frontend for cron:
http://www.tldp.org/HOWTO/Mail-Queue-4.html
For using Cron in XWindows (KDE mainly), see my blog:
http://linux-blog.org/index.php?/arc...ase-Kcron.html
http://www.faqs.org/docs/linux_network/x14923.html
Then use this link to help you with cron...or use a X frontend for cron:
http://www.tldp.org/HOWTO/Mail-Queue-4.html
For using Cron in XWindows (KDE mainly), see my blog:
http://linux-blog.org/index.php?/arc...ase-Kcron.html
My Home Away from Home: Yet Another Linux Blog
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
Similar Threads
- script to email new ip (Shell Scripting)
- Struggling with Captcha (PHP)
- Parse Email Headers (PHP)
- sendmail problem using cron (Shell Scripting)
- Parsing html form. (PHP)
- Picture Message System (Software Development Job Offers)
- incorporating exchange access to a cron script (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: data format from (4.56 0.7) -> 4.6(7) awk?!
- Next Thread: help with my fist script


Linear Mode