Barry Jackson wrote: > >> cCmd := '/bin/sh' >> cArgs := '-c ". /home/baz/tmp/ahrl8i.sh&& hbmk2 >> /home/baz/hash/ash.hbp' + ; >> ' -q -trace -info -lang=en"' > > Thanks for your input - well explained as always! > I am struggling to follow your use of quotes in cArgs above. > Is that correct? > > I have hacked the calling routine to test it and get:- > > /bin/sh: ' -c . "/home/baz/tmp/5qwnv4.sh && hbmk2 > /home/baz/hash/ash.hbp' + ' -q -trace -info -lang=en "': No such file or > directory > > I can get this to run OK from the command line, but not yours. > > sh -c ". /home/baz/tmp/test.sh && hbmk2 /home/baz/hash/ash.hbp -q -trace > -info -lang=en " > > Note . is inside the quotes. > > (temp.sh is similar to the other transitory scripts) >
You are constructing wrongly. Follow Przemek's input closely. Try this : ::oProcess:output := {|cOut, mp2, oHbp| ::showOutput( cOut,mp2,oHbp ) } ::oProcess:finished := {|nEC , nES, oHbp| ::finished( nEC ,nES,oHbp ) } ::oProcess:workingPath := hbide_pathToOSPath( ::oProject:location ) // cCmd := hbide_getShellCommand() cC := iif( hbide_getOS() == "nix", "-c ", "/C " ) IF hbide_getOS() == "nix" cArg := iif( empty( ::cBatch ), cC, cC + '".' + ::cBatch + " && " ) cArg += cExeHbMk2 + " " + cHbpPath + cCmdParams + '"' ELSE *cArgs := '-c ". ' + /home/baz/tmp/ahrl8i.sh && hbmk2 /home/baz/hash/ash.hbp -q -trace -info -lang=en"' cArg := iif( empty( ::cBatch ), cC, cC + ::cBatch + " && " ) cArg += cExeHbMk2 + " " + cHbpPath + cCmdParams ENDIF // ::oOutputResult:oWidget:append( "batchfile = " + ::cBatch + iif( hb_fileExists( ::cBatch ), " : Exists", " : Doesn't Exist" ) ) ::oOutputResult:oWidget:append( "cCmd = " + cCmd ) ::oOutputResult:oWidget:append( "arguments = " + cArg ) ::oOutputResult:oWidget:append( hbide_outputLine() ) // ::oProcess:addArg( cArg ) ::oProcess:start( cCmd ) And let us know. ----- enjoy hbIDEing... Pritpal Bedi http://hbide.vouch.info/ -- View this message in context: http://n2.nabble.com/HBIDE-Project-build-start-folder-problem-tp4861627p4877729.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour