Forum How do I...?

Can I get the windows version to behave like the *nix one?

fjfish
Hi guys

One of our developers uses windows and we’re trying to get our rails app working on his machine. I need the princely plugin to work on windows (or cygwin) but none of the command-line stuff seems to work, it just goes straight to the GUI. Is there a way to get the Windows version to behave more like the *nix one? I did try the static Linux version on Cygwin but it won’t run.

Thanks
mikeday
Run Engine\bin\Prince.exe, which is the command-line program.
fjfish
I enclose the bash wrapper I wrote to translate cygwin's /cygdrive/c and the forward slashes so that it will run from within cygwin. The commented echo command allows you to see what's going on. I put it in /usr/local/bin on my cygwin install. Thanks again.

#!/bin/bash

for (( i = 0 ; i < ${#args[@]} ; i++ ))
do
x="${args[$i]}"
x="${x//\/cygdrive\/c/c:}"
x="${x//\//\\}"
new_args[$i]="$x"
echo "${args[$i]} -> ${new_args[$i]}"
done

#echo "/cygdrive/c/Program Files/Prince/Engine/bin/prince.exe" "${new_args[@]}" 1>&2
"/cygdrive/c/Program Files/Prince/Engine/bin/prince.exe" "${new_args[@]}"
f