Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71134 invoked by uid 1010); 15 Mar 2005 01:36:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71112 invoked from network); 15 Mar 2005 01:36:29 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 15 Mar 2005 01:36:29 -0000 X-Host-Fingerprint: 24.93.47.42 ms-smtp-03.texas.rr.com NetCache Data OnTap 5.x Received: from ([24.93.47.42:58300] helo=ms-smtp-03-eri0.texas.rr.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id C2/19-31540-91C36324 for ; Mon, 14 Mar 2005 20:36:25 -0500 Received: from [192.168.1.238] (rrcs-24-153-244-61.sw.biz.rr.com [24.153.244.61]) by ms-smtp-03-eri0.texas.rr.com (8.12.10/8.12.7) with ESMTP id j2F1a22b006838; Mon, 14 Mar 2005 19:36:05 -0600 (CST) Message-ID: <42363C02.3020109@davyandbeth.com> Date: Mon, 14 Mar 2005 19:36:02 -0600 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christian Stadler CC: internals@lists.php.net References: <4236213F.4070209@davyandbeth.com> <20050315005504.23873.qmail@lists.php.net> In-Reply-To: <20050315005504.23873.qmail@lists.php.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: [PHP-DEV] Re: CLI issue: Changing STDERR From: pubaddr2@davyandbeth.com (Davy Durham) Iteresting.. but no, that won't work because the redirection is a construct of a running shell.. not the exec system function that would be interpreting that line. That got me thinking tho.. to try something like #!/bin/bash -c exec /usr/bin/php 2>/path/filename which would seem to maybe work if the php interpreter got the rest of the file as input. But, apparently bash isn't liking -c after it's already been used on a sh-bang. :( Christian Stadler wrote: >Just an idea out of the blue: >Did you try your luck with the Sha-Bang? >e. g. #!/usr/bin/php -q 2>/path/filename > >Regards, > Christian Stadler > > >