|
From: Alexander S.K. <al...@be...> - 2016-08-08 11:00:45
|
Alain Aupeix пишет: > Hi, > I use hwg_ShellExecute(), and it works great, > > But it's not possible to redirect the messages send to the console. > What is possible using, for example like this : > > run(cBrowser+" "+curl+" 1>/dev/null 2>/dev/null &") > > Could it be possible to add two params to the function to allow to > redirect to /dev/null, or to file. > Like this: > > hwg_ShellExecute ( url [ ,devout , deverr] ) The gtk function gtk_show_uri(), which is used to implement this function, doesn't have parameters, which may control the redirection. At this moment I don't know how to do this. If you run a console application and you know it name and path, you may use hwg_RunConsoleApp( cCommandLine, cFileOut ) instead. Regards, Alexander. |