popen() to execute\read a Linux (not windows) command
Eric Pouech
eric.pouech at wanadoo.fr
Wed Nov 23 14:39:27 CST 2005
Boaz Harrosh wrote:
> Sergio wrote:
>
>> I see. But I need to link to msvcrt for the rest of the functions in
>> the dll
>> I am trying to make. I only need popen to be linked using linux'
>> libraries.
>> Do you know what I can do to have both things (standard popen and wine's
>> libraries for the rest of the dll)?
>>
>
> A second dll maybe. (That is not liked to msvcrt)
what about dlopen/dlsym on (g)libc + popen ?
> Also one more thing you could do is a small Winelib app
> (run_unix.exe.so) that communicates STDIN STDOUT raw style through
> GetStdHandle / ReadFile /WriteFile (see MSDN). and in tern popen() a
> Linux process. So you do:
>
> <Winelib_code>
> popen("run_unix param1 param2 ..." ,"rb+") ;
> </Winelib_code>
>
> Such a program could also be useful for a Native app that needs to run a
> Linux application.
we should even try to integrate it to popen in builtin msvcrt
A+
--
Eric Pouech
More information about the wine-devel
mailing list