> I tried:
> 
>  sFile = Temp$()
>  Desktop.RunAsRoot("whoami > " & sFile)
> 
>  Do
>    Wait 0.1
>  Loop Until Exist(sFile)
> 
>  fl = Open sFile For Read Watch
> 

I tried your code, and I obtain in TextEdit simply the word:  root

(But I should be getting: vuott)

----------

In the meantime, I have experienced the reading of another Terminal by all its 
file-descriptors:
******
....
Desktop.RunAsRoot("cat /proc/29895/fd/0 > " & sFile)
 
 fl = Open sFile For Read Watch

....
*****************
but in my TextEdit I obtain what I write manually in the terminal, not 
resulting data of command.
So, this solution should be discarded.

bye

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to