argv handling?

San Mehat nettwerk at damagestudios.com
Sun Aug 3 17:41:18 EDT 2003


Hey,

I'm trying to run the spearhead server via the 'exec' systemcall and am
wondering how the server parses argv...

My normal spearhead startup args are 'spearhead_lnxded +exec
server.cfg', and when I call exec like so:

execl("spearhead_lnxded", "spearhead_lnxded", "+exec",
"server.cfg",NULL);

The server appears to not process the arguments properly. The same is
observed when I exec with "+exec server.cfg" as one argument...

Any ideas?

Thanks
-san





More information about the Mohaa mailing list