Re: background processing
| From: | Richard Gabriel | Date: | Fri, 24 Jan 2003 13:24:37 +0000 |
| Subject: | Re: background processing | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2959@lists.php.net to get a copy of this message | ||
If you want a separate php script to run in the background, here are two
simple methods you may want to try:
1. Run a cron every x minutes to call the script (I don't recommend this
one)
2. Download a C++ application created for just this instance. It is called
mikehup. It will run any shell command in the background. This is needed
because any shell_exec() command in PHP will normally wait for a response
from the command before continuing.
IJf you can't find this utility, let me know and I can email it to you.
Take care.
----- Original Message -----
From: "Frank Heinrich" <frh100@earthlink.net>
To: <php-gtk-general@lists.php.net>
Sent: Thursday, January 23, 2003 10:09 PM
Subject: [PHP-GTK] background processing
> Hi,
>
> I'm brand new to this forum, and very new to php-gtk.
>
> I am refreshing some very old and tired text-mode applications that mainly
> monitor and do some control
> of external devices that are accessed mostly via serial connections, and
> some via sockets.
>
> I need to display status and values, and occasionally, a user needs to
> invoke a command, which
> typically means sending a serial (or socket) command to one of the
devices.
>
> I was interested in using php-gtk, but I'm stuck at how to solve two
related
> issues:
>
> 1-how do i make changes in data visible when no UI event has occured.
> 2-how do i get background processing to poll the devices (by sending
> commands and parsing the responses)
>
> I had hoped the php tick_handler stuff would work, but it seems gtk-main
> surpresses any ticks until it is ended.
>
> Am I missing something obvious?
>
> --frh
>
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>