Question
Running system/sh commands
This is related to my Java questions yesterday. I actually got into the
Java work because I was having troubles verifying that the ACL system or
sh commands were working.
Today I was able to get this to work:
sh 'C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat'
I need to pass it a parameter though, and I get a message that the
parameter isn't understood if I do this:
sh 'C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat' deploy
And in this version the cmd window just flashes by doing nothing:
sh 'C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat deploy'
I suppose I could just create another batch file that contains the
parameter, but I would like to use the tools as provided if I can.
I've also tried the system function, which seems to do nothing:
system("C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat")
Java work because I was having troubles verifying that the ACL system or
sh commands were working.
Today I was able to get this to work:
sh 'C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat'
I need to pass it a parameter though, and I get a message that the
parameter isn't understood if I do this:
sh 'C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat' deploy
And in this version the cmd window just flashes by doing nothing:
sh 'C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat deploy'
I suppose I could just create another batch file that contains the
parameter, but I would like to use the tools as provided if I can.
I've also tried the system function, which seems to do nothing:
system("C:\Program Files\nsiv3.1.15.2\bin\makedoc.bat")

