Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6132 invoked by uid 1010); 14 Mar 2005 23:41:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6082 invoked from network); 14 Mar 2005 23:41:59 -0000 Received: from unknown (HELO yahoo.co.kr) (127.0.0.1) by localhost with SMTP; 14 Mar 2005 23:41:59 -0000 X-Host-Fingerprint: 24.93.47.40 ms-smtp-01.texas.rr.com NetCache Data OnTap 5.x Received: from ([24.93.47.40:45603] helo=ms-smtp-01-eri0.texas.rr.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id CF/DA-31540-74126324 for ; Mon, 14 Mar 2005 18:41:59 -0500 Received: from [192.168.1.238] (rrcs-24-153-244-61.sw.biz.rr.com [24.153.244.61]) by ms-smtp-01-eri0.texas.rr.com (8.12.10/8.12.7) with ESMTP id j2ENfqYm025147 for ; Mon, 14 Mar 2005 17:41:53 -0600 (CST) Message-ID: <4236213F.4070209@davyandbeth.com> Date: Mon, 14 Mar 2005 17:41:51 -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: internals@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: CLI issue: Changing STDERR From: pubaddr2@davyandbeth.com (Davy Durham) Hey.. seeing as there is not way specified in the docs that I can find, I thought I'd email this list as there may be an undocumented way of doing it. On Linux: I'm converting some bash scripts to php.. in the bash scripts I sometimes do at the very top: " exec 2>/path/filename " Which changes where stderr goes because it closes and reopens file descriptor 2 I've played around and around with things with some php cli scripts, but cannot do it. Is there a way of changing the actual process's file descriptor 2 to something else. (or any fd for that matter) Thanks, Davy