NodeFly/node-foreman — pull request #17 by johngeorgewright (2013-01-23 00:27:38+00:00)
Title: Trying to make things work in windows

Hey there,

I've been trying to get node-foreman working in Windows (don't ask why) and think I've come up with a temporary fix until node's child_process.spawn can work correctly in windows.

Here's what I've done:

1. Firstly just checking for *nix only methods like `process.getuid()`.
2. Removing function level scope variables called `process`... Windows seems to s**t itself with this.
3. Changing spawn commands from this format: `mycommand --myoption` into: `cmd /C "mycommand --myoption" /S`

...and hazzah... so far my node-foreman scripts are working in Windows.