Re: Reload/restart php-gtk program
| From: | Sebastián Marconi | Date: | Sun, 12 Aug 2007 18:54:03 +0000 |
| Subject: | Re: Reload/restart php-gtk program | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-8041@lists.php.net to get a copy of this message | ||
I'm reloading my programs using an outside script and choosing an exit
code, for example exit(2):
#Linus
exit=2
while [ $exit -eq "2" ]
do
php $app_dir/run.php
exit=$?
done
#Windows .bat
:restart
%php_dir%/php.exe %app_dir%/run.php
if errorlevel 2 goto restart;
On 8/7/07, Peter Smith <smithpdo@gmail.com> wrote:
>
> I would like to reload and restart a php-gtk program after the program has
> downloaded an updated version of itself. I visualise a dialog informing the
> user that an updated version has been installed and inviting him to click on
> a button to restart with the updated version of the program.
> How would you do this? I have a feeling the answer is painfully obvious but
> I can't see it.
> Peter.
> --
> View this message in context:
> http://www.nabble.com/Reload-restart-php-gtk-program-tf4232624.html#a12042083
> Sent from the Php - GTK - General mailing list archive at Nabble.com.
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>