AW: [mythtv] MythGame screenshots
Anssi Hannula
anssi.hannula at mbnet.fi
Mon Aug 8 10:00:14 EDT 2005
Well, I didn't remember the functions correctly, they were popen() and
pclose().
But, maybe you should use a shell script instead?
E.g. start zsnes with:
zsnes somerom &>/dev/null & ZSNESPID=$!
sleep 5
takescreenshot
kill $ZSNESPID
and so on.
You can fetch mysql values with something like:
echo "MYSQL QUERY" | mysql --password=bahbah -B
--
Anssi Hannula
Jochen Kühner wrote:
> I didn't got it to work with that function.
>
> I used zsnes with the following command line:
>
> Zsnes romname & > /dev/null 2>&1
>
> But maybe I did something wrong.
>
> Would you try???
>
> -----Ursprüngliche Nachricht-----
> Von: mythtv-dev-bounces at mythtv.org [mailto:mythtv-dev-bounces at mythtv.org] Im
> Auftrag von Anssi Hannula
> Gesendet: Sonntag, 7. August 2005 23:34
> An: Development of mythtv
> Betreff: Re: [mythtv] MythGame screenshots
>
> Jochen Kühner wrote:
>
>>If now tested the script a few times and made some enhanchments, but my
>>major problem is that i can't get a programm run in background from
>>within a php script (i tested it with zsnes.) php still waits until
>>zsnes is closed.
>>
>
>
> You should use proc_open() and friends.
> http://fi2.php.net/manual/fi/function.proc-open.php
>
More information about the mythtv-dev
mailing list