Re: [Linux-programlama] php komut satırından

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Mehmet Duran (mehmetd@kablonet.com.tr)
Date: Tue 08 Aug 2006 - 13:30:45 GMT


Selam Okan,

Abi rahat ol. Eger shell script'te
fooBar &
gibi bir satir yoksa, her adimin bitimine kadar exec bekliyor.

http://tr.php.net/manual/en/function.exec.php

Note: If you start a program using this function and want to leave it
running in the background, you have to make sure that the output of that
program is redirected to a file or some other output stream or else PHP
will hang until the execution of the program ends.

On Tue, 2006-08-08 at 16:10 +0300, OKAN ARI wrote:
> Shell'den caisitirlmak uzere bir php betiği yazıyorum. Aklıma bisey takıldı
> denerken fark edemeyebilirm sormak istedim.
>
> Bu php script db'den aldıgı $degisken'leree gore
>
> while ($degikenler)
> {
> exec("shfile.sh $degisken");
> }
> yapacak. Ancak bu exec komutu uzun surecek bir islem ve bitmeden digerine
> gecilmemesi gerekiyor. (ortalama 5dk suruyor diyelim). Bu durumda her exec
> bittiginde while dongusunun devam etmesini istiyorum yazıl yaparım?
>
> OKAN
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama@liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.