@broadblues
The redirection using sh work actually!
On the other hand, I would be happier to get the stderr directly.
I tried LoadSeg and run it with CreateNewProcess(). There is a tag called NP_Error. But there I still get no data from gcc, but maybe I am still doing something wrong here. [code] *seg.b = LoadSeg_ (&filename) If *seg=Null Then Function Return -1
tagList\tag[n]\ti_Tag = #NP_Seglist ,*seg : n+1 tagList\tag[n]\ti_Tag = #NP_FreeSeglist ,1 : n+1 tagList\tag[n]\ti_Tag = #NP_Name ,&filename : n+1 tagList\tag[n]\ti_Tag = #NP_Synchronous ,0 : n+1 tagList\tag[n]\ti_Tag = #NP_Priority ,priority : n+1 tagList\tag[n]\ti_Tag = #NP_Arguments ,&cliargs : n+1 tagList\tag[n]\ti_Tag = #NP_StackSize ,stacksize : n+1 tagList\tag[n]\ti_Tag = #NP_Input ,inputFH : n+1 tagList\tag[n]\ti_Tag = #NP_CloseInput,0 : n+1 tagList\tag[n]\ti_Tag = #NP_Output ,outputFH : n+1 tagList\tag[n]\ti_Tag = #NP_CloseOutput,1 : n+1 tagList\tag[n]\ti_Tag = #NP_Error ,outputFH : n+1 tagList\tag[n]\ti_Tag = #NP_CloseError ,0 : n+1 tagList\tag[n]\ti_Tag = #TAG_DONE , 0
*proc.Process = CreateNewProc_ (tagList) [/code] inputFH is my callers input, outputFH is a file handle to a pipe.
Last edited by Wanderer on 21-May-2013 at 06:35 PM.
_________________ -- Author of HD-Rec, Sweeper, Samplemanager, ArTKanoid, Monkeyscript, Toadies, AsteroidsTR, TuiTED, PosTED, TKPlayer, AudioConverter, ScreenCam, PerlinFX, MapEdit, AB3 Includes and many more... Homepage: http://www.hd-rec.de |