On Thu, 2007-12-06 at 15:07 +0100, Edward de Grijs wrote:
>
>
> To check things even more, I tried to communicate using C with
> popen():
> > FILE *ptr;
> > if ((ptr = popen("mogo --9 --nbTotalSimulations 3000 > mogoout",
> "w")) != NULL)
> > {
> > fprintf(ptr, "boardsize 9\n");
> > fprintf(ptr
Edward de Grijs: <[EMAIL PROTECTED]>:
>
>
>Thanks Hideki, Chris and Jacques for your replies.
>
>> Hideki wrote:
>> Then, you can make a very simple program that passes a file to stdout
>> first and passes stdin to stdout after the end-of-file of the file.
>> And use it as "a.out file | mogo ".
>I
Thanks Hideki, Chris and Jacques for your replies.
> Hideki wrote:
> Then, you can make a very simple program that passes a file to stdout
> first and passes stdin to stdout after the end-of-file of the file.
> And use it as "a.out file | mogo ".
Is this not the way a "tail -f" works?
This is t
Hi Edward,
Edward de Grijs: <[EMAIL PROTECTED]>:
>
>Hi Hideki,
>
>The file is used by:
>cat file | mogo
I guess MoGo doesn't check end-of-file of stdin.
>Adding quit to the file lets mogo quit the game, but
>I want to let mogo wait for the obvious next command like
>play b
Then, you can mak