Crafty logfile
Moderators: hgm, Rebel, chrisw
-
- Posts: 3232
- Joined: Mon May 31, 2010 1:29 pm
- Full name: lucasart
Crafty logfile
How do I get Crafty (v 23.4) to *not* spue out tons of games.xxx and log.xxx files ? Is there a command line flag to disable this annoying behaviour, or a xboard option ?
-
- Posts: 782
- Joined: Wed Mar 08, 2006 9:22 pm
Re: Crafty logfile
lucasart wrote:How do I get Crafty (v 23.4) to *not* spue out tons of games.xxx and log.xxx files ? Is there a command line flag to disable this annoying behaviour, or a xboard option ?
Hello Lucas,
In the Crafty rc file try log off.
Later.
-
- Posts: 155
- Joined: Mon Feb 15, 2010 9:33 am
- Location: New Zealand
Re: Crafty logfile
Or send
log off
as the first command after Crafty is started.
log off
as the first command after Crafty is started.
-
- Posts: 3232
- Joined: Mon May 31, 2010 1:29 pm
- Full name: lucasart
Re: Crafty logfile
do you mean to say i should create a file called .craftyrc in the current directory (or in the directroty of the crafty executable?) and write a single line "log off" in it ?Roger Brown wrote:lucasart wrote:How do I get Crafty (v 23.4) to *not* spue out tons of games.xxx and log.xxx files ? Is there a command line flag to disable this annoying behaviour, or a xboard option ?
Hello Lucas,
In the Crafty rc file try log off.
Later.
-
- Posts: 782
- Joined: Wed Mar 08, 2006 9:22 pm
Re: Crafty logfile
lucasart wrote:do you mean to say i should create a file called .craftyrc in the current directory (or in the directroty of the crafty executable?) and write a single line "log off" in it ?Roger Brown wrote:lucasart wrote:How do I get Crafty (v 23.4) to *not* spue out tons of games.xxx and log.xxx files ? Is there a command line flag to disable this annoying behaviour, or a xboard option ?
Hello Lucas,
In the Crafty rc file try log off.
Later.
Hello Lucas,
There are various ways to pass commands to Crafty.
The rc file is one way. I am unsure about the naming conventions in Linux but in Windows my rc file - which I open using a text editor - is called crafty so your example should work.
Xboard can also pass commands in the command line to Crafty.
Or the command can be typed directly in Crafty.
To have the log off command persist the rc option might be easiest.
Later.
-
- Posts: 4052
- Joined: Thu May 15, 2008 9:57 pm
- Location: Berlin, Germany
- Full name: Sven Schüle
Re: Crafty logfile
Hi Roger,Roger Brown wrote:I am unsure about the naming conventions in Linux but in Windows my rc file - which I open using a text editor - is called crafty
just to clarify the naming and search path for the Crafty RC file:
On UNIX platforms (e.g. Linux) Crafty will search for a file named ".craftyrc" in the following directories, using the first location where it is found:
- current working directory,
- the user's home directory as defined in the passwd database.
On non-UNIX platforms Crafty will search for a file named "crafty.rc" in the directories given by the CRAFTY_RC_PATH environment variable, using the first location where it is found. If that variable is not set then Crafty tries to locate "crafty.rc" in the current working directory.
Supplying an RC file is optional.
Sven
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty logfile
If you are using unix, a .craftyrc file with either "log off" or "log=off" will do the trick. For windows, you need to name the file "crafty.rc". And a third option is to use the command line argument "crafty log=off". If you are using xboard, for example, -fcp "./crafty log=off" will work.lucasart wrote:do you mean to say i should create a file called .craftyrc in the current directory (or in the directroty of the crafty executable?) and write a single line "log off" in it ?Roger Brown wrote:lucasart wrote:How do I get Crafty (v 23.4) to *not* spue out tons of games.xxx and log.xxx files ? Is there a command line flag to disable this annoying behaviour, or a xboard option ?
Hello Lucas,
In the Crafty rc file try log off.
Later.