Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Wine
Reload this Page piping command line output from one win32 command to another
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Wine Discussion about Wine, the Open Source implementation of the Windows API on top of X and Unix.

Reply
 
Thread Tools Display Modes
Old 02-15-2008   #1 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 2
piping command line output from one win32 command to another

I've got two win32 command line programs I'm running under wine. How do I pipe command line output from one to another? Due to the size of the output (takes 30min to run), it limits how well I can test this scenario.

This doesn't work:

wine command1.exe | wine command2.exe

I'm think that maybe backticks would work:

`wine command1.exe` | `wine command2.exe`

or

wine "command1.exe | command2.exe"

but I'm not sure.

Any ideas?
jaadfoo is offline   Reply With Quote
Old 02-19-2008   #2 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,153
Quote:
Originally Posted by jaadfoo View Post
I've got two win32 command line programs I'm running under wine. How do I pipe command line output from one to another? Due to the size of the output (takes 30min to run), it limits how well I can test this scenario.

This doesn't work:

wine command1.exe | wine command2.exe

I'm think that maybe backticks would work:

`wine command1.exe` | `wine command2.exe`

or

wine "command1.exe | command2.exe"

but I'm not sure.

Any ideas?
Try to explain a bit better what you are trying to do and we will see if there's any way around it.

Those examples that you posted, besides being syntactically incorrect in some cases, will never work, because you are trying to pipe something that is outside the scope of your shell.

If you are looking for some DOS-like kind of operation, you should be checking dosbox instead, or even freedos into a virtual box.
i92guboj is offline   Reply With Quote
Old 02-19-2008   #3 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 2
I'm trying to run a series of scripts using these tools:

Visualizing LIDAR in Google Earth (fast & streaming, source code available)

The full syntax is listed just under the "details" heading, but here is my shortened, similar version:

spfinalize -i input.file -ospb | spdelaunay2d -ispb -osmb | tin2dem -ismb -o new.dem

The commands spfinalize, spdelaunay2d & tin2dem are window's command line executables. The programs are optimized to pipe output from one to the next, which is considerably faster than saving to disk for each step. What I am having a problem with is the pipe syntax so wine will interpret each of the windows executables properly.

Thanks.
jaadfoo is offline   Reply With Quote
Old 02-20-2008   #4 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,153
Quote:
Originally Posted by jaadfoo View Post
I'm trying to run a series of scripts using these tools:

Visualizing LIDAR in Google Earth (fast & streaming, source code available)

The full syntax is listed just under the "details" heading, but here is my shortened, similar version:

spfinalize -i input.file -ospb | spdelaunay2d -ispb -osmb | tin2dem -ismb -o new.dem

The commands spfinalize, spdelaunay2d & tin2dem are window's command line executables. The programs are optimized to pipe output from one to the next, which is considerably faster than saving to disk for each step. What I am having a problem with is the pipe syntax so wine will interpret each of the windows executables properly.

Thanks.
The problem is that the pipe is a construct that belongs to the shell (command.com or whatever windows uses nowadays). Wine has not a shell emulator, so, you need to run a shell on wine, after that, you can start to figure how use pipes on that shell.

I remember trying 4dos on the past and it didn't work. Maybe cygwin or even the windows cmd.exe would work. I really don't know... But even if they do, I don't know how this will or won't work...
i92guboj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chkproc detects alot of hidden processes, should I be worried? KClaisse Linux Security 0 01-13-2008 09:34 AM
MS Vista's explorer bug jan1024188 The Coffee Lounge 1 05-06-2007 11:33 AM
2.6 kernel under slackware 10.1 questions Weedman The Linux Kernel 3 11-16-2005 10:34 AM
iptables how can ii apply my firewall to others reaky Linux Networking 6 06-28-2004 01:32 PM
Troubleshooting iptables script Mystic_Slayer Linux Networking 4 04-26-2004 10:17 AM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 07:39 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0