ID:136321
 
Can the Windows version of DreamDaemon be started like the Linux version with command-line arguments?

Actually, I know it can take the .dmb as an argument - how about port assignments and security/visibility settings?
digitalmouse wrote:
Can the Windows version of DreamDaemon be started like the Linux version with command-line arguments?

Actually, I know it can take the .dmb as an argument - how about port assignments and security/visibility settings?

Yes, but it's not fully supported or documented. In windows, you'd do something like this:

dreamdaemon.exe "something.dmb" "2000" "-safe"

The quotes are necessary (because windows accepts filenames with spaces) and the first two arguments (dmb, port) must be in that order.
In response to Tom
Thanks! I just wanted to script the DD startups when the server reboots in windows for a while, until I can get time to switch back to Linux.

Thanks again!
In response to digitalmouse
In response to CableMonkey
Thats exactly how i feel.
In response to Tom
ok... how about shutting down / stopping a DD instance via command line - in either Windoze *or* Linux? Any possibilties?
In response to digitalmouse
Linux/FreeBSD Only:

kill -15 <dreamdaemon's PID>

This asks DreamDaemon to shut down the current world nicely and terminate execution.


kill -9 <dreamdaemon's PID>

This tells DreamDaemon to stop everything its doing and terminate. ...no nice shutdown of the world.


kill -10 <dreamdaemon's PID>

This asks DreamDaemon to restart the current world.
In response to CableMonkey
Cool...thanks CM! I was aware of using 'kill', but was curious if the DD had any command-line parameters for the same.

Now I can just grep for the PID, then do the kill from within a cron script.

Thanks again!
In response to digitalmouse
...yet another, and hopefully last Windows related question:

Is error logging supported via the command line too, as in the Linux version?
In response to digitalmouse
digitalmouse wrote:
...yet another, and hopefully last Windows related question:

Is error logging supported via the command line too, as in the Linux version?

I believe that "-log" should work on the windows command-line, but you'll have to test it to find out for sure. If not, you can just set world.log = file("world.log") in the code. I'm almost certain that works.