Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42934 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44185 invoked from network); 5 Feb 2009 11:50:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2009 11:50:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 72.14.220.159 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 72.14.220.159 fg-out-1718.google.com Received: from [72.14.220.159] ([72.14.220.159:65470] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/B5-24530-B62DA894 for ; Thu, 05 Feb 2009 06:50:04 -0500 Received: by fg-out-1718.google.com with SMTP id e12so127349fga.23 for ; Thu, 05 Feb 2009 03:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Qn3IIlPHq573wZvsUUdffipsphcr007XDPIjgMOv7uA=; b=NJjaLoy0E0+32VlYxrytA/4Oa7E400NaNLZ166CXYn5b2xaaidg8VCWosWSV6QLqpM TDIPkTLY5GHvCX9Z1BbvGDEUJYgQxYjszf+06WC6dmS7JaYOeSzlT84oUSLcbXRsKr0I i+/vjJajst8jJx1NOxqYEd+zSOknNWWsn7UE4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=BnX/I47xo86wH2/vhR2cFpZY3LLtZHV+PJTNgsHD+H+JMNLIYnM/hVeN3HXI+IYn8m HMdKy2m72+fI407xkl8OytCN07+YkUv30PvuMhsXbMqWwu87/qSAQPamjciMMFqtuXxP aL0Ox2V+QFjFOn7glKhUXNXEx4yTkvVqIbz4o= MIME-Version: 1.0 Received: by 10.223.111.211 with SMTP id t19mr259023fap.64.1233834600565; Thu, 05 Feb 2009 03:50:00 -0800 (PST) Reply-To: RQuadling@googlemail.com In-Reply-To: <8d3051340902050345n2db61583l27dfc090c3af8eb8@mail.gmail.com> References: <8d3051340902050345n2db61583l27dfc090c3af8eb8@mail.gmail.com> Date: Thu, 5 Feb 2009 11:50:00 +0000 Message-ID: <10845a340902050350y3d5b80d9n26217aa998e74774@mail.gmail.com> To: =?UTF-8?B?QWxww6FyIFTDtnLDtms=?= Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] proc_open with bypass_shell problems From: rquadling@googlemail.com (Richard Quadling) 2009/2/5 Alp=C3=A1r T=C3=B6r=C3=B6k : > Hi, > > Let me start by explaining what i am trying to do. I need to start a cons= ole > application and get it's pid. If i don't use bypass_shell, i end up with = the > another pid (probably one for cmd.exe). If i use bypass_shell then the > application starts in the background, no window is shown. This would be > great, if this wouldn't prevent the application from generating soem logs= . I > have looked into the sources and found that my problem might be here: > > newprocok =3D CreateProcess(NULL, command, &security, &security, TRUE, > NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env.envp, cwd, &si, &pi); > > Why is the CREATE_NO_WINDOW necesarry? Might this be the problem? I am no= t a > win expert, i lean mroe towards *nix. Is there any option to start > direclty, but show the window, and let the application perform as usual? > > PS: hope it's the right list > -- > Alpar Torok > If you bypass the shell, then there is no window. The shell IS the window. --=20 ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474= 731 "Standing on the shoulders of some very clever giants!"