Discussion:
[Wine] piping with wine question
ToddAndMargo
2016-10-16 10:56:11 UTC
Permalink
Hi All,

How do I get this command to work in Linux:

$ echo wineclip | wine clip.exe

Many thanks,
-T
ToddAndMargo
2016-10-16 11:02:22 UTC
Permalink
Post by ToddAndMargo
Hi All,
$ echo wineclip | wine clip.exe
Many thanks,
-T
echo wineclip | wine cmd /c clip.exe

doesn't work either
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ToddAndMargo
2016-10-16 12:54:35 UTC
Permalink
Post by ToddAndMargo
Post by ToddAndMargo
Hi All,
$ echo wineclip | wine clip.exe
Many thanks,
-T
echo wineclip | wine cmd /c clip.exe
doesn't work either
Interesting.

$ echo wineclip | wine cmd /c echo
Echo is ON

This means it did not pick up the pipe.

What are the rules for piping stuff to Windows
programs with Wine?

Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Liam Proven
2016-10-16 16:17:44 UTC
Permalink
Post by ToddAndMargo
What are the rules for piping stuff to Windows
programs with Wine?
I don't think you can pipe things to Windows programs at all, on any OS.
--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: ***@cix.co.uk • GMail/Twitter/Facebook/Flickr: lproven
Skype/MSN: ***@hotmail.com • LinkedIn/AIM/Yahoo: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)
ToddAndMargo
2016-10-17 00:55:57 UTC
Permalink
Post by Liam Proven
Post by ToddAndMargo
What are the rules for piping stuff to Windows
programs with Wine?
I don't think you can pipe things to Windows programs at all, on any OS.
Sure you can. Do it all the time.


| Pipe the output from one command into another command.

& Run two commands with a single command line, e.g.
copy x.txt y.txt & copy a.dat b.dat

|| Run the command to the right only if ErrorLevel > 0
copy x.txt z.txt || echo Error!

&& Run the command to the right only if ErrorLevel = 0
copy x.txt z.txt && echo Success!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ToddAndMargo
2016-10-17 01:12:13 UTC
Permalink
Post by ToddAndMargo
Post by Liam Proven
Post by ToddAndMargo
What are the rules for piping stuff to Windows
programs with Wine?
I don't think you can pipe things to Windows programs at all, on any OS.
Sure you can. Do it all the time.
| Pipe the output from one command into another command.
& Run two commands with a single command line, e.g.
copy x.txt y.txt & copy a.dat b.dat
|| Run the command to the right only if ErrorLevel > 0
copy x.txt z.txt || echo Error!
&& Run the command to the right only if ErrorLevel = 0
copy x.txt z.txt && echo Success!
That was for Windows. Linux BASH is the same for "|" but
varies on the others.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Continue reading on narkive:
Loading...