Winboard questions

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Re: Winboard questions

Postby Guenther Simon » 16 Apr 2012, 12:35

Hi again HG,

I noticed it might be useful to add a list/log of running processes at the end or beginning of a debug file, this way it would
be easy to notice when something went wrong in an automatic tourney. (Or it might be possible to call a prog like ProcExplorer
from commandline making such logs after each game with the -afterGame flag.) What do you think about such an idea?

Guenther


Does the -afterGame 'kludge' still work in newest WB betas or WB 4.61? I am asking because I have now a batch file
I would like to be executed after each tournaments game, but it seems it is never executed.
I type '!!! -afterGame task.bat' into the type move dialogue and then create a tourney and start it, but no logs are
written. (The batch writes a log with timestamp in the name, listing all running processes and infos and it works if
I start it manually) The batch file lies in the same folder as the WB.exe.

Guenther
User avatar
Guenther Simon
 
Posts: 794
Joined: 26 Sep 2004, 19:49
Location: Regensburg, Germany

Re: Winboard questions

Postby H.G.Muller » 16 Apr 2012, 12:56

Yes, it should still work. But I never tried it with a batch file, only with plain .exe, and perhaps that is the problem. Perhaps it needs something like "cmd file.bat" or "cmd<file.bat" to run a batch file.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Winboard questions

Postby Guenther Simon » 16 Apr 2012, 18:30

You are right, the problem is how to call it as bat file. I tried both ways you gave and no success, but after compiling it
with a simple batch to exe converter all works ok now. Still it would be nice to know the exact way to call a batch file there.

Guenther
User avatar
Guenther Simon
 
Posts: 794
Joined: 26 Sep 2004, 19:49
Location: Regensburg, Germany

Re: Winboard questions

Postby H.G.Muller » 16 Apr 2012, 20:16

Indeed. From the command prompt, typing "cmd < file", where 'file' is a file with DOS commands, does work. But I guess the redirection character '<' is treated as special by the command prompt in a way that it will not when you simply put it on the command line of a process you start with CreateProcess.

I will think about this (and ask around).
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Previous

Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 16 guests