Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 53348 invoked from network); 11 Mar 2009 16:41:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 16:41:37 -0000 Received: (qmail 35161 invoked by uid 500); 11 Mar 2009 16:41:36 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 35116 invoked by uid 500); 11 Mar 2009 16:41:36 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 35107 invoked by uid 99); 11 Mar 2009 16:41:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 09:41:36 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.219.166] (HELO mail-ew0-f166.google.com) (209.85.219.166) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 16:41:28 +0000 Received: by ewy10 with SMTP id 10so98673ewy.43 for ; Wed, 11 Mar 2009 09:41:00 -0700 (PDT) Received: by 10.216.8.77 with SMTP id 55mr3506858weq.220.1236789660266; Wed, 11 Mar 2009 09:41:00 -0700 (PDT) Received: from ?172.31.13.157? (cpe-90-157-172-235.dynamic.amis.net [90.157.172.235]) by mx.google.com with ESMTPS id j8sm62334gvb.21.2009.03.11.09.40.58 (version=SSLv3 cipher=RC4-MD5); Wed, 11 Mar 2009 09:40:59 -0700 (PDT) Message-ID: <49B7E999.6060400@xbc.nu> Date: Wed, 11 Mar 2009 17:40:57 +0100 From: =?UTF-8?B?QnJhbmtvIMSMaWJlag==?= User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Daniel.Pocock@barclayscapital.com, dev@apr.apache.org Subject: Re: exec a process. References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Daniel.Pocock@barclayscapital.com wrote: >>> Is there a portable way to exec a file within the apr? >>> I noticed that apr_proc_fork is not portable. >>> I basically want to do the following. >>> >>> #setup stdin and stdout. >>> exec("/my file") in a separate process. >>> #wait for the process. >>> =20 >> apr_procattr_* is available: >> =20 > > Can this be used to simulate the behaviour of execve in a portable way?= > =20 If you try reading the APR docs, then yes. > _______________________________________________ > > This e-mail may contain information that is confidential, privileged or= otherwise protected from disclosure. If you are not an intended recipien= t of this e-mail, do not duplicate or redistribute it by any means. Pleas= e delete it and any attachments and notify the sender that you have recei= ved it in error. Unless specifically indicated, this e-mail is not an off= er to buy or sell or a solicitation to buy or sell any securities, invest= ment products or other financial product or service, an official confirma= tion of any transaction, or an official statement of Barclays. Any views = or opinions presented are solely those of the author and do not necessari= ly represent those of Barclays. This e-mail is subject to terms available= at the following link: www.barcap.com/emaildisclaimer. By messaging with= Barclays you consent to the foregoing. Barclays Capital is the investme= nt banking division of Barclays Bank PLC, a company registered in England= (number 1026167) with its registered office at 1 Churchill Place, London= , E14 5HP. This email may relate to or be sent from other members of the= Barclays Group. > _______________________________________________ > =20 But I must assume the docs are too confidential for you. -- Brane