Re: proc_open, proc_get_status, proc_close
The Doctor <[email protected]> Mon, 6 Mar 2023 16:22:46 -0000 (UTC)
| Newsgroups | comp.lang.php |
|---|---|
| Organization | NetKnow News |
| Message-ID | <[email protected]> |
Ezimene nimi Teine nimi <[email protected]> wrote: : Get to: http://aaaaaaaaaaaaaaaar.medianewsonline.com/firstpage.php : And invite all Your friends too !!!!!!!!!!! : On Friday, January 6, 2023 at 12:30:08=E2=80=AFPM UTC+2, Badarbo wrote: : > Hello,=20 : > with the code below, $rv is 0 :-)=20 : >=20 : > --- begin code ---=20 : > $pdesc=3D[0=3D>['pipe','r'],1=3D>['file','stdout.log','w'],2=3D>['file','= : stderr.log','w']];=20 : > $proc=3Dproc_open('sleep 3',$pdesc,$pipes);=20 : > fclose($pipes[0]);=20 : > $rv=3Dproc_close($proc);=20 : > echo('rv: '.$rv.PHP_EOL);=20 : > exit(0);=20 : > --- end code ---=20 : >=20 : > With the code below, $rv is -1 :-(=20 : >=20 : > --- begin code ---=20 : > $pdesc=3D[0=3D>['pipe','r'],1=3D>['file','stdout.log','w'],2=3D>['file',s= : tderr.log','w']];=20 : > $proc=3Dproc_open('sleep 3',$pdesc,$pipes);=20 : > $done=3Dfalse;=20 : > while ($done=3D=3D=3Dfalse) {=20 : > $pstat=3Dproc_get_status($proc);=20 : > if (!$pstat['running']) $done=3Dtrue;=20 : > usleep(500000);=20 : > }=20 : > fclose($pipes[0]);=20 : > $rv=3Dproc_close($proc);=20 : > echo('rv: '.$rv.PHP_EOL);=20 : > exit(0);=20 : > --- end code ---=20 : >=20 : > Why oh why? This abusive spamtroll came from X-Received: by 2002:ac8:4146:0:b0:3bf:ff6d:ad8b with SMTP id e6-20020ac84146000 000b003bfff6dad8bmr2996144qtm.9.1678101944897; Mon, 06 Mar 2023 03:25:44 -0800 (PST) X-Received: by 2002:a81:b61a:0:b0:52e:c79a:cda with SMTP id u26-20020a81b61a000000b0052ec79a0cdamr6571078ywh.10.1678101944674; Mon, 06 Mar 2023 03:25:44 -0800 (PST) Path: news.nk.ca!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.c om!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!new s.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!g oogle-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.php Date: Mon, 6 Mar 2023 03:25:44 -0800 (PST) In-Reply-To: <[email protected]> Injection-Info: google-groups.googlegroups.com; posting-host=82.131.38.37; post ing-account=ogslnwoAAACd9vU9PADzlWBA81fSuNpL NNTP-Posting-Host: 82.131.38.37 References: <[email protected]> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <[email protected]> Subject: Re: proc_open, proc_get_status, proc_close From: Ezimene nimi Teine nimi <[email protected]> Injection-Date: Mon, 06 Mar 2023 11:25:44 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2271 Xref: news.nk.ca comp.lang.php:167964 Spamtrollers are trolls posting useless spam thinking it is content but are posting useless noise. Spamtrolls are newsgroup vandals! Thoses trolls are as bad as Donald Trump on Twitter. This makes https://groups.google.com/search/conversations?q=Depeer%20Google%20Groups Depeer Google groups Now!! -- Member - Liberal International This is [email protected] Ici [email protected] Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b We cannot defy gravity without paying a price. -unknown Beware https://mindspring.com