From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 12:55:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 578C71065680 for ; Fri, 29 Aug 2008 12:55:33 +0000 (UTC) (envelope-from thavinci@thavinci.za.net) Received: from thavinci.za.net (thavinci.za.net [196.211.117.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5F5108FC19 for ; Fri, 29 Aug 2008 12:55:32 +0000 (UTC) (envelope-from thavinci@thavinci.za.net) Received: from thavinci.za.net (localhost [127.0.0.1]) by thavinci.za.net (Postfix) with ESMTP id C12A69B43A for ; Fri, 29 Aug 2008 14:55:29 +0200 (SAST) Received: from thavinciPC (unknown [192.168.12.110]) by thavinci.za.net (Postfix) with ESMTP id 9B82B9B438 for ; Fri, 29 Aug 2008 14:55:29 +0200 (SAST) From: "Marcel Grandemange" To: Date: Fri, 29 Aug 2008 14:54:42 +0200 Message-ID: <029801c909d6$67d76330$37862990$@za.net> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckJ1md/Bwj0x0DDR1eodlMs8NY9TA== Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Script To Execute command via mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2008 12:55:33 -0000 I have an interesting situation. I have a windows based sms server, this machine works in the following way. It watches a shared directory for txt files that must be formatted in certain way and periodically sends them off to mobile. What I want to do is create a SMTP to SMS gateway. Easy in theory! Rite a script to map shared drive, ensure it's connected and write the txt files in dir. However the second part I have no idea, somehow I need to watch the mbox file of say a e-mail account called "test" And IF a mail arrives parse it look for a security key if exists convert to txt file and copy to shared dir. SMS sent.. Any suggestions?