Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46920 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29557 invoked from network); 1 Feb 2010 09:07:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2010 09:07:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=bnagwani@juniper.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=bnagwani@juniper.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain juniper.net from 64.18.2.177 cause and error) X-PHP-List-Original-Sender: bnagwani@juniper.net X-Host-Fingerprint: 64.18.2.177 exprod7og112.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [64.18.2.177] ([64.18.2.177:50516] helo=exprod7og112.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/21-17169-DB9966B4 for ; Mon, 01 Feb 2010 04:07:10 -0500 Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob112.postini.com ([64.18.6.12]) with SMTP ID DSNKS2aZu1A9wqzcfcHokBjI5Xwkjxht461O@postini.com; Mon, 01 Feb 2010 01:07:09 PST Received: from EMBX02-HQ.jnpr.net ([fe80::18fe:d666:b43e:f97e]) by P-EMHUB03-HQ.jnpr.net ([fe80::a124:1ab1:8e0b:f671%11]) with mapi; Mon, 1 Feb 2010 01:05:09 -0800 To: "internals@lists.php.net" Date: Mon, 1 Feb 2010 01:05:07 -0800 Thread-Topic: Too many levels of symbolic links error Thread-Index: AcqjHaYwp9E74OblT0GJrOMG0SmVEg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_DBDEC20E6E29304D8AE5EAA493609B3556ABEFF373EMBX02HQjnprn_" MIME-Version: 1.0 Subject: Too many levels of symbolic links error From: bnagwani@juniper.net (Bharat Nagwani) --_000_DBDEC20E6E29304D8AE5EAA493609B3556ABEFF373EMBX02HQjnprn_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, We use php in cgi mode. PHP version is 5.2.3. I am using popen to execute grep on a file popen($cmd, "r"); where $cmd =3D "/usr/bin/grep xyz /var/tmp/log/session" and log is a symbolic link pointing to /var/log ls -l /var/tmp/ lrwxr-xr-x 1 root wheel 8 Jan 31 23:17 log -> /var/log In the shell I am able to run this command fine. When I execute from php using popen I get this error [chrome://firebug/content/blank.gif]grep: /var/tmp/log/session: Too many le= vels of symbolic links If I don't use symbolic link it works fine. But I need to use symbolic link due to some limitations. Any idea what could be wrong? Thanks --_000_DBDEC20E6E29304D8AE5EAA493609B3556ABEFF373EMBX02HQjnprn_--