Re:php-gtk external app launch (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Re:php-gtk external app launch
|
wella (User)
Fresh Boarder
Posts: 4
|
|
php-gtk external app launch 4 Years, 3 Months ago
|
Karma: 0
|
|
Hi,
has anyone experience with launching external application under MS winXP? I mean exec("..."); and then the ext. app is waiting for something. During waiting php-gtk window freezes and is impossible move or resize it. Popen, add_io_watch does not help.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1599
|
|
|
|
|
|
|
Last Edit: 2008/01/28 01:44 By kksou.
|
|
|
The administrator has disabled public write access.
|
wella (User)
Fresh Boarder
Posts: 4
|
|
Re:php-gtk external app launch 4 Years, 3 Months ago
|
Karma: 0
|
|
Uou, I forgot some important info.
php launchs $data=exec("listener.exe","r"). Listener is a program which waits for data on serial port(10s timeout) and if any then prints it to the std and exit. During 10s php-gtk window freezes(see my first question). And for some reasons I cannot use fopen("comx","r"). The question is how to exec listener without freezing main GtkWindow.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
wella (User)
Fresh Boarder
Posts: 4
|
|
Re:php-gtk external app launch 4 Years, 3 Months ago
|
Karma: 0
|
|
Thanks kksou,
it helps. I run listener via COM set in Run("listener > file",0,TRUE). Then in php only read content of this file. TRUE means that "Wait for the command to complete before continuing execution of the wsh script." During Run php is blocked due the TRUE however is possible to move window.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|