Page 1 of 1

xboard and engine match using remote machine

Posted: Sun Sep 18, 2011 12:17 pm
by frankp
Would somebody with experience of running xboard engine matches with one engine running a separate machine give me some advice please. I cannot seem to specify the working directory on the remote machine.

For example:

xboard -fcp "ssh 192.168.2.14 /home/fp/chess/crafty/crafty" -scp "/home/fp/chess/searcher/searcher" -tc 5 -inc 0 -sd "/home/fp/chess/searcher"

works, but 'crafty' is looking in the /home/fp directory for .craftyrc and writing logfiles there.

Whereas

xboard -fcp "ssh 192.168.2.14 /home/fp/chess/crafty/crafty" -scp "/home/fp/chess/searcher/searcher" -tc 5 -inc 0 -sd "/home/fp/chess/searcher" -fd "192.168.2.14:/home/fp/chess/crafty"

fails as follows
xboard: Failed to start first chess program ssh 192.168.2.14 /home/fp/chess/crafty/crafty on localhost: 192.168.2.14:/home/fp/chess/crafty: No such file or directory

Combinations of -fd "ssh 192.168 etc" and -fd "/home/fp/chess/crafty" fail too.

Frank

Re: xboard and engine match using remote machine

Posted: Tue Sep 20, 2011 3:55 am
by Don
frankp wrote:Would somebody with experience of running xboard engine matches with one engine running a separate machine give me some advice please. I cannot seem to specify the working directory on the remote machine.

For example:

xboard -fcp "ssh 192.168.2.14 /home/fp/chess/crafty/crafty" -scp "/home/fp/chess/searcher/searcher" -tc 5 -inc 0 -sd "/home/fp/chess/searcher"

works, but 'crafty' is looking in the /home/fp directory for .craftyrc and writing logfiles there.

Whereas

xboard -fcp "ssh 192.168.2.14 /home/fp/chess/crafty/crafty" -scp "/home/fp/chess/searcher/searcher" -tc 5 -inc 0 -sd "/home/fp/chess/searcher" -fd "192.168.2.14:/home/fp/chess/crafty"

fails as follows
xboard: Failed to start first chess program ssh 192.168.2.14 /home/fp/chess/crafty/crafty on localhost: 192.168.2.14:/home/fp/chess/crafty: No such file or directory

Combinations of -fd "ssh 192.168 etc" and -fd "/home/fp/chess/crafty" fail too.

Frank
The problem is that xboard does not know you are specifying a directory on the remote machine. It's looking for a directory called "192.168.2.14:/home/fp/chess/crafty" on the LOCAL machine. puting the 192.168.2.14: stuff doesn't mean anything to xboard, it still thinks it's a local directory.

Also, you are running the script FROM the home directory, even though you are specifying a path to the binary. It's the same as if you were in your own home directory but run Crafty by specifying a path somewhere else - it's still running from the home directory.

You might try running this from a script on the remote machine. Call the script crafty.bsh and put it in the crafty directory on the remote machine. Then instead of running crafty remotely run the script remotely instead. The script should look something like this:

-----[ crafty.bsh ]-----
#!/bin/bash

cd /home/fp/chess/crafty
./crafty

-----[ snip ]-----

Don't forget to chmod +x crafty.bsh

I think that might work, but I'm not real familiar with where crafty wants to put files. .craftyrc should be in the home directory unless crafty is designed to first look in the current working directory (which is the home directory anyway the way you are running it.)

Don

Re: xboard and engine match using remote machine

Posted: Tue Sep 20, 2011 5:59 pm
by bob
Don wrote:
frankp wrote:Would somebody with experience of running xboard engine matches with one engine running a separate machine give me some advice please. I cannot seem to specify the working directory on the remote machine.

For example:

xboard -fcp "ssh 192.168.2.14 /home/fp/chess/crafty/crafty" -scp "/home/fp/chess/searcher/searcher" -tc 5 -inc 0 -sd "/home/fp/chess/searcher"

works, but 'crafty' is looking in the /home/fp directory for .craftyrc and writing logfiles there.

Whereas

xboard -fcp "ssh 192.168.2.14 /home/fp/chess/crafty/crafty" -scp "/home/fp/chess/searcher/searcher" -tc 5 -inc 0 -sd "/home/fp/chess/searcher" -fd "192.168.2.14:/home/fp/chess/crafty"

fails as follows
xboard: Failed to start first chess program ssh 192.168.2.14 /home/fp/chess/crafty/crafty on localhost: 192.168.2.14:/home/fp/chess/crafty: No such file or directory

Combinations of -fd "ssh 192.168 etc" and -fd "/home/fp/chess/crafty" fail too.

Frank
The problem is that xboard does not know you are specifying a directory on the remote machine. It's looking for a directory called "192.168.2.14:/home/fp/chess/crafty" on the LOCAL machine. puting the 192.168.2.14: stuff doesn't mean anything to xboard, it still thinks it's a local directory.

Also, you are running the script FROM the home directory, even though you are specifying a path to the binary. It's the same as if you were in your own home directory but run Crafty by specifying a path somewhere else - it's still running from the home directory.

You might try running this from a script on the remote machine. Call the script crafty.bsh and put it in the crafty directory on the remote machine. Then instead of running crafty remotely run the script remotely instead. The script should look something like this:

-----[ crafty.bsh ]-----
#!/bin/bash

cd /home/fp/chess/crafty
./crafty

-----[ snip ]-----

Don't forget to chmod +x crafty.bsh

I think that might work, but I'm not real familiar with where crafty wants to put files. .craftyrc should be in the home directory unless crafty is designed to first look in the current working directory (which is the home directory anyway the way you are running it.)

Don
That is exactly what I do, in fact...

Re: xboard and engine match using remote machine

Posted: Wed Sep 21, 2011 9:24 pm
by frankp
Don
Thanks - that did the trick
Frank