Re: Redirecting output from Linux-binaries called by wine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2009-08-28 at 23:13 +0200, Gert van den Berg wrote:
> On Fri, Aug 28, 2009 at 21:35, Hagen
> Fuchs<hagen.fuchs@xxxxxxxxxxxxxxxxxxxx> wrote:
> > Hi,
> >
> >> Correct, learning bash will get you a long way, especially if you're
> >> mixing in UNIX/Linux commands.
> >
> > In way of defense, I have to admit, I'm quite comfortable with shell
> > scripting.  However, as I have tried to outline (perhaps ambiguously), I
> > cannot rely on advanced UNIX tools, as the redirection has to happen on
> > the Win32/Wine-level.
> >
> > After a few more hours' worth of experimenting - a tad more than I had
> > planned on spending - I'm now fairly certain that this kind of
> > redirection is not possible at all.  Or is it? :)
> >
> If you don't need wineconsole, this seem to work:
> mohag@mohagpc:~$ wine cmd
> CMD Version 1.1.28
> 
> Z:\home\mohag>/bin/echo test
> Z:\home\mohag>test
> 
> Z:\home\mohag>/bin/echo test > NUL
> Z:\home\mohag>
> 
An additional thought: why not use netcat? 

Netcat is a general purpose program that transfers data across a TCP/IP
connection. It comes in both Windows and Linux versions, so you could
run a Windows copy in a .BAT file under control of the WINE application,
using it to ship commands and/or data to a Linux shell via a Linux copy
of netcat. You could choose to run both ends of the connection on the
same host or at either side of a network. 

The Linux version is called 'netcat' or 'nc'.


Martin




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux