| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Procmail recipe to Start / Stop services|
using email to control server services
I have a server running webmin. But I only access this about once a week so it seems a bit of a waste (and a potential security risk) if it is running 24/7.
I was thinking of being able to switch it off and on via email: using procmail to detect a subject word and then start / stop the service.
Procmail would detect wbmon in the subject and then issue a /etc/init.d/webmin start
Procmail would detect wbmoff in the subject and then issue a /etc/init.d/webmin stop
I can detect the keyword in the subject but how do I initiate the webmin start and stop process?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved