Hagen Fuchs
2009-Aug-24 16:02 UTC
[Wine] Redirecting output from Linux-binaries called by wine
Dear wine-users,
I am experimenting with wine's (wine-1.0.1) ability to interface with
native Unix programs, as in
$ wineconsole /bin/echo hi
hi
What I would like to do is something like the following.
Create a batch file that calls a Unix-command (in this case `ssh`) and
redirects output to a file. Consider, for example, the following lines
in a file called 'ssh.bat':
/usr/bin/ssh %* pwd > wine.out
Now running
wineconsole ssh.bat user at host > linux.out
shortly creates an empty (wine) command prompt window and closes it
again in an instant (I've set up public-key authentication). The
output is:
$ cat linux.out
/home/user
$ cat wine.out
The problem is, that I'd like to use the `ssh` output on the wine level.
For that the above output would've to be reversed.
I don't believe that this is possible, but I dislike guessing and prefer
asking a competent body of users and developers. Thus, I'll submit to
your good judgement :)
Thanks,
Hagen
vitamin
2009-Aug-25 03:47 UTC
[Wine] Re: Redirecting output from Linux-binaries called by wine
Hagen Fuchs wrote:> Create a batch file that calls a Unix-command (in this case `ssh`) and redirects output to a file.And what you need Wine here for? Hagen Fuchs wrote:> $ wineconsole ssh.bat user at host > linux.out > $ cat wine.out > > $Yes, it's a a known problem with stdout redirection in wineconsole. Don't use it.
Hagen Fuchs
2009-Aug-26 21:56 UTC
[Wine] Redirecting output from Linux-binaries called by wine
Dear wine-users, Surely this matter is not too complicated? Why, I had hoped this rather fundamental question would be a welcome diversion from the neverending torrent of queries along the lines of "Help! App xy not working! My favourite game crashes!". I would gladly RTFM, if only I knew which.> What I would like to do is something like the following. > > Create a batch file that calls a Unix-command (in this case `ssh`) and > redirects output to a file. Consider, for example, the following lines > in a file called 'ssh.bat': > > /usr/bin/ssh %* pwd > wine.out > > Now running > > wineconsole ssh.bat user at host > linux.out > > [...]Regards, Hagen
vitamin
2009-Aug-28 05:33 UTC
[Wine] Re: Redirecting output from Linux-binaries called by wine
Hagen Fuchs wrote:> I would gladly RTFM, if only I knew which.Read on shell scripting, it's 1000 times more powerful then MS could ever dream of implementing in batch files.
vitamin
2009-Aug-29 01:16 UTC
[Wine] Re: Redirecting output from Linux-binaries called by wine
Hagen Fuchs wrote:> I'm now fairly certain that this kind of > redirection is not possible at all.As I said earlier, there are bugs in Wine with console redirection. It some-what works from wineconsole only. With lots of bugs.