Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42933 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40685 invoked from network); 5 Feb 2009 11:45:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2009 11:45:06 -0000 Authentication-Results: pb1.pair.com header.from=torokalpar@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=torokalpar@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.20 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: torokalpar@gmail.com X-Host-Fingerprint: 209.85.219.20 mail-ew0-f20.google.com Received: from [209.85.219.20] ([209.85.219.20:40385] helo=mail-ew0-f20.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/F4-24530-041DA894 for ; Thu, 05 Feb 2009 06:45:05 -0500 Received: by ewy13 with SMTP id 13so231210ewy.23 for ; Thu, 05 Feb 2009 03:45:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=C0Bfl81HiUH3x8d9dnOieD9hqZbCrMQR8Sj3w/z+Q6I=; b=IbEcOaIakTNVIN4eDS16Rz2jx7mP/q7OU4aYVT5CcGLypKAqStIeU4ajDCW9/0oSDV aQPz1bL8WrxQS+WDbxytd1TJ1NKHEXdJOi9ZPQcEMpnMAVXerL2ptD5Kb0h5T5HTHfSt BahYDlPGLigR4xuAAKVCbPHSSI7fr0plonN+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rK7KMDctZ1e/CCACLKdZ3qHX5hCD/Tq57+VK7PZgHcRB2q4wGh1zgnjPrkdFwM8vnC Rdxl8hm/HhOAmFaAwIgshSBbkbyazIQ6dwTVFAm99nHBoQK/sQzTjgH6B4yut2RQ51JY HHsSrsm2CfgYj2fVWAqNrccroy1fj5DU2Mir0= MIME-Version: 1.0 Received: by 10.211.196.13 with SMTP id y13mr303678ebp.135.1233834301704; Thu, 05 Feb 2009 03:45:01 -0800 (PST) Date: Thu, 5 Feb 2009 13:45:01 +0200 Message-ID: <8d3051340902050345n2db61583l27dfc090c3af8eb8@mail.gmail.com> To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0015174c0cec43cd0b04622a6f7d Subject: proc_open with bypass_shell problems From: torokalpar@gmail.com (=?UTF-8?B?QWxww6FyIFTDtnLDtmsg?=) --0015174c0cec43cd0b04622a6f7d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Let me start by explaining what i am trying to do. I need to start a console 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 = 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 not 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 --0015174c0cec43cd0b04622a6f7d--