Re: URGENT! Regarding PHP and qmail-remote (another issue)

From: Date: Mon, 08 Jan 2001 01:09:23 +0000
Subject: Re: URGENT! Regarding PHP and qmail-remote (another issue)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33149@lists.php.net to get a copy of this message
On Sun, 07 Jan 2001, you wrote: > Explanation: > I'm trying to send e-mail using qmail-remote. (part 1 of the script) > and that is doing OK. But, when I try to capture the output of the > qmail-remote, script hangs. I must wait qmail-remote to terminate > because I need its output for further code. Without part 2 of the > script runs perfectly, send mail then exits. First off, I am not so sure about using qmail-remote to send mail. In my experience I have only used qmail-send to send outgoing mail. Maybe both will work okay... but I think the right one to use is qmail-send. > If I do something like script.php > msg.file I recieve adequate output > (binary data by the way) in file. But I just can't capture live data > stream. If I try something like script.php | script2.php it doesn't > work either! Unfortunately PHP is not the best candidate for shell-scripting where you have complicated piping, signals, etc.. You can also try writing your message into a file ... then call popen("qmail-remote < my_input", "r"); > Any suggestions? If all else fails... use Perl. :-) -- Andrew W. Schmeder Electronic Molecule Corp. PH: (510) 589-1407

« previous php.general (#33149) next »