note 89149 added to features.commandline

From: Date: Tue, 24 Feb 2009 10:11:21 +0000
Subject: note 89149 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-151052@lists.php.net to get a copy of this message
I'm figuring out how to pipe an email to a php script with postfix. For the email user@example.com: I created the following line in /etc/aliases: user: "|/www/file.php" file.php is chmod 755 This works fine. But I wanted to test this without having to send an email every time. And this took some searching to figure out, yet it's oh-so simple: To pipe the file email.txt to the script, write the following in the terminal window: user@host: php file.php < testepost.txt I was confused by the | in the aliases file, and didn't get what came after what, etc etc. Regards, Willy T. Koch Norway ---- Server IP: 62.73.196.231 Probable Submitter: 195.159.72.197 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- https://master.php.net/note/edit/89149 Del: integrated -- https://master.php.net/note/delete/89149/integrated Del: useless -- https://master.php.net/note/delete/89149/useless Del: bad code -- https://master.php.net/note/delete/89149/bad+code Del: spam -- https://master.php.net/note/delete/89149/spam Del: non-english -- https://master.php.net/note/delete/89149/non-english Del: in docs -- https://master.php.net/note/delete/89149/in+docs Del: other reasons-- https://master.php.net/note/delete/89149 Reject -- https://master.php.net/note/reject/89149 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151052) next »