by Dann Corbit » 21 Jul 2010, 08:36
A simple way to analyze games from the command line is to turn them into EPD with one of the many PGN to EPD converters and then analyze the EPD records. If the engine you are using does not have a test mode, you can just make a perl script or something like that to analyze the rows one at a time with setboard + analyze or setboard + go or whatever else you may like.
Tools that can turn a chess game into EPD records:
1. pgn-extract by barnes
2. pgn2epd by Coulom
3. sankit or OCD by Edwards
4. pgn2fen by Foden (not sure if it works on Linux)
5. pgntoepd by Millaster (windows only, I think but maybe not)
6. PGNposition by Veluri
You can {for instance} use crafty compiled with sankit to analyze the records via
st <seconds>
epdpfga <inputfile.epd> <outputfile.epd>
where inputfile.epd is bare epd and outputfile.epd is epd data that has been decorated by the analysis.