xboard and engine match using remote machine

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

frankp
Posts: 228
Joined: Sun Mar 12, 2006 3:11 pm

xboard and engine match using remote machine

Post 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
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: xboard and engine match using remote machine

Post 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
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: xboard and engine match using remote machine

Post 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...
frankp
Posts: 228
Joined: Sun Mar 12, 2006 3:11 pm

Re: xboard and engine match using remote machine

Post by frankp »

Don
Thanks - that did the trick
Frank