Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Alternative Operating Systems > Need to run a DOS application from the terminal

Need to run a DOS application from the terminal
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2006
Status: Offline
Reply With Quote
Nov 22, 2006, 08:37 PM
 
Hi;

We have a scientific application that can be run under WinXP or from CMD (Dos) that we would like to run as fast as possible on our new MacPro. This thing takes 16-20 hours to run on a pentium, so we would like to have as fast as possible access on the MacPro. We would also like to have it run from the bash terminal, so that we can use bash scripting to optimize data flow.

Can you suggest the best way of running this? We can run under Parallels, of course, but this can't be called from the terminal (I think) We have also considered:

Wine (or DarWine) though this seems to be oriented towards graphic apps.

Q (QEMU) though this is emulated and claims "500 mHz performance".

It seems we might also be able to boot straight into DOS, though then we have... DOS.

any suggestions?

dennis
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Nov 22, 2006, 08:46 PM
 
Boot Camp, Windows XP, and Command Line (the Windows version of Terminal). In that order...

Seriously, if you want the speed, you NEED to boot native into something that can run the program, rather than Wine which emulates the API (or Parallels, which emulates the whole machine).

Or spend the $1k or so to get a dedicated Windows machine... If you need speed, you need as much of the system as possible to be built for your software.
Glenn -----
OTR/L, MOT, Tx
     
Mac Elite
Join Date: Sep 2005
Location: Vancouver, BC
Status: Offline
Reply With Quote
Nov 22, 2006, 08:50 PM
 
You also have to remember that since this is a DOS application (as you say), then it won't be multithreaded -- so you'll want to run it on the CPU that is fastest at executing a single thread that you have access to.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Nov 22, 2006, 09:26 PM
 
Originally Posted by ghporter View Post
Seriously, if you want the speed, you NEED to boot native into something that can run the program, rather than Wine which emulates the API
What do you mean? As far as I know, WINE doesn't "emulate" the API in any sense that would slow things down. It reimplements the API.

As for WINE being focused on graphical apps, that is true, but that doesn't mean it doesn't support DOS apps — it just means Windows is a bigger challenge. I'd give that a try, personally.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Nov 23, 2006, 10:13 AM
 
Originally Posted by Chuckit View Post
What do you mean? As far as I know, WINE doesn't "emulate" the API in any sense that would slow things down. It reimplements the API.

As for WINE being focused on graphical apps, that is true, but that doesn't mean it doesn't support DOS apps — it just means Windows is a bigger challenge. I'd give that a try, personally.
Poor choice of words on my part-WINE is indeed a Mac/Unix/Linux interface for the Windows API. But it doesn't implement everything smoothly nor is it without some problems. Maybe it would work fine for a DOS program, maybe not. An extra layer, even a very good one, between the app and the hardware won't be as fast as the Command Line in a native booted Intel machine running Windows. Of course WINE is free (right?), so trying it can't hurt. I just think it won't be as fast as the application might be on a machine running Windows natively.
Glenn -----
OTR/L, MOT, Tx
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Nov 24, 2006, 01:53 PM
 
I've actually heard of cases (non-typical, I'm sure) where WINE ran apps faster than Windows just because Windows had a poor implementation of the functions the program depends on.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Senior User
Join Date: Sep 2005
Location: Anson, TX
Status: Offline
Reply With Quote
Nov 24, 2006, 03:17 PM
 
are you sure it's an old 16 bit DOS app and not a 32-bit windows command line program?
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:30 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2