Search Ali's Blog

Tuesday, July 08, 2008

netper netserver on Windows tip

Q: I am running netserver on Windows (XP x64) and I am getting this error messaeg:
netserver: fopen of debug file as new stdout failed!: The system cannot find the path specified.
What's wrong?
A: netserver need to open the file c:\\temp\\netperf.debug with write permission, so
Run: mkdir %HOMEDRIVER%/temp/
And make sure you can create files with write permission in it

Source: netserver.c
#ifndef WIN32
#define DEBUG_LOG_FILE "/tmp/netperf.debug"
#define DEBUG_LOG_FILE "c:\\temp\\netperf.debug"
#endif /* WIN32 */
#endif /* DEBUG_LOG_FILE */

No comments: