View previous topic :: View next topic |
Author |
Message |
Morrandir
Joined: 13 Jan 2006 Posts: 27
|
Posted: Sun Nov 25, 2007 19:16 Post subject: Delete Logfile on Restart |
|
|
For Debugging purpose I'd like the NWN² logfile nwserverLog1.txt to be deleted each time I restart NWServer with NWNX4 GUI.
Yes, I'v tried with a batch file specified in nwnx.ini, but the file can't be deleted as NWNServer seems to access it at the moment the batch file is executed.
So is there any way I can do this, without manually having to Stop NWServer , delete nwserverLog1.txt and Start NWServer? _________________ German NWN1/2 Persistent World Hochwaldallianz |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Thu Jan 10, 2008 23:56 Post subject: |
|
|
I guess the best thing would to modify the NWNX4 source directly. Maybe I could close the logfile while restarting the server, but that would have to wait until the next version. _________________ Papillon |
|
Back to top |
|
|
Morrandir
Joined: 13 Jan 2006 Posts: 27
|
Posted: Fri Jan 11, 2008 0:31 Post subject: |
|
|
I could live with that very well. _________________ German NWN1/2 Persistent World Hochwaldallianz |
|
Back to top |
|
|
xaltos
Joined: 03 Jun 2006 Posts: 31 Location: Germany
|
Posted: Sat Jan 12, 2008 13:06 Post subject: |
|
|
There is a easier way as well.
NWNx4 can start a batch befor a restart.
So you can delete your Log files with it.
Take a look into the nwnx.ini
Code: |
# If you want NWNX to execute a CMD or BAT file before restarting the server after
# a crash, specify it's name here. If you leave this setting empty, no program
# will be run. NWNX will wait for the program to finish before it continues.
# no default
restartCmd = nwnx_restart.cmd
|
_________________ xaltos
NWN2_Audolo |
|
Back to top |
|
|
Morrandir
Joined: 13 Jan 2006 Posts: 27
|
Posted: Sat Jan 12, 2008 19:28 Post subject: Re: Delete Logfile on Restart |
|
|
Morrandir wrote: |
Yes, I'v tried with a batch file specified in nwnx.ini, but the file can't be deleted as NWNServer seems to access it at the moment the batch file is executed. |
_________________ German NWN1/2 Persistent World Hochwaldallianz |
|
Back to top |
|
|
|