Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 57246 invoked from network); 22 Jun 2007 14:53:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 14:53:23 -0000 Received: (qmail 35292 invoked by uid 500); 22 Jun 2007 14:53:12 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 35193 invoked by uid 500); 22 Jun 2007 14:53:12 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 35110 invoked by uid 99); 22 Jun 2007 14:53:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 07:53:12 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.91.193.23] (HELO wip-ectls-mx3.wipro.com) (203.91.193.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 07:53:08 -0700 Received: from wip-ectls-mx3.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 5EB1B224597; Fri, 22 Jun 2007 20:22:45 +0530 (IST) Received: from blr-ec-bh01.wipro.com (blr-ec-bh01.wipro.com [10.201.50.91]) by wip-ectls-mx3.wipro.com (Postfix) with ESMTP id 52F3222409E; Fri, 22 Jun 2007 20:22:45 +0530 (IST) Received: from blr-m3-msg.wipro.com ([10.114.50.99]) by blr-ec-bh01.wipro.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 22 Jun 2007 20:23:10 +0530 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Apache Subprocess Date: Fri, 22 Jun 2007 20:21:53 +0530 Message-ID: <87BAAE3ECD405B4984A13958914500926EC4F2@blr-m3-msg.wipro.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Apache Subprocess Thread-Index: Ace0Lm+K6vIsObX+SR2iknqnTv+lFgArerFA References: <87BAAE3ECD405B4984A13958914500926E3DEA@blr-m3-msg.wipro.com><97b6648c0706211002l9b26201oabfa322705a2498b@mail.gmail.com><87BAAE3ECD405B4984A13958914500926E3DEB@blr-m3-msg.wipro.com> From: To: Cc: X-OriginalArrivalTime: 22 Jun 2007 14:53:10.0354 (UTC) FILETIME=[0D141320:01C7B4DD] X-Virus-Checked: Checked by ClamAV on apache.org Hi Scott, I do not see anything in error log, The print line before and after the command also works fine,The webserver has permission to run the command since I can execute the same command using backtick like `/tmp/in_out_err.pl` Do we need to configure anything so that apache can start executing the Apache::SubProcess package ? Thanks, Sajid -----Original Message----- From: Scott Gifford [mailto:sgifford@suspectclass.com]=20 Sent: Thursday, June 21, 2007 11:32 PM To: Sajid Khan (WT01 - Computing, Storage & Software Products) Cc: modperl@perl.apache.org Subject: Re: Apache Subprocess Hi Khan, writes: [...] > I was trying in the lines of below code from=20 > http://perl.apache.org/docs/2.0/ api/Apache/SubProcess.html . > =20 > # write to/read from the process > $command =3D "/tmp/in_out_err.pl"; > ($in_fh, $out_fh, $err_fh) =3D $r->spawn_proc_prog($command); > print $in_fh "hello\n"; > $output =3D read_data($out_fh); > $error =3D read_data($err_fh); I've not used this particular function before, but a few ideas that might help: Do you see anything in your error log? If you put a print line before and after running the command, do you see either of them? Does the Web server user have permission to run the command? Is autoflush turned on for $in_fh? Does the running program flush its output immediately? Good luck! ----Scott. The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.=20 WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email. =20 www.wipro.com