Sean P. DeNigris wrote
>
> How do I circumvent all the processing and tell OSP what args to actually
> pass to the underlying system?
>
I found a solution:
env := CommandShell new environment.
pwd := '/'.
args := Array
with: '-DJENKINS_HOME=/path with spaces/.jenkins'
with: '-jar'
with: '/path/with/another space/jenkins.war'
with: '--httpPort=####'
with: '--ajp13Port=####'.
desc := (Array with: nil with: nil with: nil).
p := PipeableOSProcess
new: '/usr/bin/java'
arguments: args
environment: env
descriptors: desc
workingDir: pwd
errorPipelineStream: nil.
Since I'm not doing any redirecting, this works. If you have to redirect, it
looks like the best move would be to go through ProxyPipeline, like Dave
suggested, but define and plugin a custom ShellSyntax that does not do any
string processing...
Sean
--
View this message in context:
http://forum.world.st/Running-in-background-with-OSProcess-tp4615534p4617794.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.