On Thu, November 15, 2007 6:58 am, Voytek Eymont wrote: > some time ago, I came across a utility that would process a terminal > command in an email body, and, email back the output; > but I don't recall what it was, > anyone knows of such tool ?
It's pretty dangerous unless you've got a secure email (eg PGP signed & encrypted) but consider this:- In your .procmailrc file you have some conditions to identify the message you want to process (eg sender, subject, special string) then you tell procmail to pipe that message through a filter which you write (or obtain). A shell script like this might inspire you:- #!/bin/bash grep "^##" | sed -e "s/^##//" | xargs sh | mail -s "command output" [EMAIL PROTECTED] Of course there's the original system... UUCP (Unix to Unix CoPy) which was kinda designed to do what you want but not many people operate uucp mail services anymore. It was the thing that started the internet, pre-dates ethernet and TCP/IP. uucico -s mynode "[EMAIL PROTECTED]" (from memory). Used this for transfer of Orders/Invoices in an EDI back-end on a mainframe with a Linux web server front-end. -- ---<GRiP>--- Electronic Hobbyist, Former Arcadia BBS nut, Occasional nudist, Linux Guru, SLUG President, AUUG and Linux Australia member, Sydney Flashmobber, Tenpin Bowler, BMX rider, Walker, Raver & rave music lover, Big kid that refuses to grow up. I'd make a good family pet, take me home today! Some people actually read these things it seems. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
