Re: when exec() call is done?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all,

exactly Cesar

exec returns the output of external program
if you need parse it, first you must catch output

$out = exec( "external-app" );

see http://php.net/manual/en/function.exec.php and
http://www.php.net/manual/en/ref.exec.php
proc_* functions also

On Dec 8, 2007 1:03 AM, Cesar D. Rodas <saddor@xxxxxxxxx> wrote:
> Hello
>
> On 30/11/2007, Foxydot Dragon <foxydot@xxxxxxxxx> wrote:
> >
> >
> >
> >
> >
> >
> > hi all, new to the group...
> >
> >  I've got a script that is making a call to an external program via
> >  exec(). (I can use another function, just had luck with this so far.)
> >  I need to know when the process that I'm calling has completed, so I
> >  can move on to the next step AFTER the files are finished creating. Is
> >  there a simple way to learn this?
>
> "exec" pause php until the program is finished, example
>
> <?php
> exec("foo");
> echo "bar";
> ?>
>
> "bar" won't be printed until foo execution end.
>
> >
> >
> >
> >
> >
> >
> >  thanks,
> >  fd
> >
> >
>
> I hope this info be useful for you,
>
> --
> Best Regards
>
> Cesar D. Rodas
> http://www.cesarodas.com
> http://www.thyphp.com
> http://www.phpajax.org
> Phone: +595-961-974165
>
>
>
> PHP Professionals looking for PHP jobs
> http://www.phpclasses.org/professionals/
> Yahoo! Groups Links
>
>
>
>



-- 
Renan de Lima Barbosa
renandelima.com

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux