Re:Re: [PHP-GTK] forking hell

From: Date: Fri, 05 Jul 2002 00:06:18 +0000
Subject: Re:Re: [PHP-GTK] forking hell
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2214@lists.php.net to get a copy of this message
If memory servers me you need to handle both stdout and stderr for php to continue on, in Unix something like: exec("app >/dev/null 2>&1"); --rdp On Thu, 4 Jul 2002, Ian Boxsell wrote: > have exec working fine in some instances but it won't do what i want in this > one > tried exec("app &"); but it freezes my php-gtk code > perl was probably a bad example i have a php-gtk app that needs to start 2 > other apps (1 gtk) > > > > > > ----- Original Message ----- > From: "Rich Payne" <rdp@talisman.mv.com> > To: "Ian Boxsell" <ian@kos.com.au> > Cc: <php-gtk-general@lists.php.net> > Sent: Wednesday, July 03, 2002 10:46 PM > Subject: Re: [PHP-GTK] forking hell > > > > On Wed, 3 Jul 2002, Ian Boxsell wrote: > > > > > hi all > > > > > > b4 Q would like to warn you that i am a VERY amateur code cutter > > > > > > my research indicates that if i want to call a 3rd party app (perl > script that may take a while to run) > > > and continue on with app that i need to > > > > > > have php >=4.2.0 > > > compile with --enable-pcntl > > > be on a unix variant/platform > > > and use pcntl_exec to call perl (or whatever else i may wish to call) > > > > Yes, you could do it that way but since you're just involking Perl it > > would be much better to use the exec() call. > > > > pcntl is for forking the current application, I don't think this is really > > what you want. > > > > > Q: anyone had success with this method ?? has anyone got a sample which > calls a 3rd party app ?? and is pcntl_exec a goer in php-gtk ?? > > > have read alan's summation > > > http://www.akbkhome.com/news/fixing%20fork > that pcntl_fork() is the business and > > > then had difficulty applying the example to my situation (read i don't > get it - no offence alan refer to line 1) > > > > Have a look at this: > > http://www.php.net/manual/en/ref.exec.php > > > > --rdp > > > > -- > > Rich Payne > > http://talisman.mv.com > > > > > > -- > > PHP-GTK General Mailing List (http://gtk.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- Rich Payne http://talisman.mv.com

« previous php.gtk.general (#2214) next »