Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-03-2004, 02:45 PM   #1
Registered: Jul 2003
Location: NC
Distribution: Fedora,Mepis,Debian
Posts: 84

Rep: Reputation: 15
How to interact a script with a legacy DOS app

I have a legacy DOS app (actually it is the COMPLY.EXE effluent release program found on the EPA website) which asks for user input to a bunch of questions then calculates and outputs to a file. Since this program won't allow you to Ctrl-Brk out it is a major pain to rerun if you make an entry error and have to reenter ALL inputs again.
I would like to store all the user answers in a file and use some sort of input redirection to feed it the stream of data.
I have tried various input redirect methods in both DOS and in DOSEMU (using freedos) without positive results.

For example
command result
type mydata.dat > comply starts COMPLY.EXE
type mydata.dat | comply starts COMPLY.EXE which immediately dies
error in line 64 error number 3023

I could possibly use a second machine and ssh into the first one somehow and feed the values . I remember in the old days one could use a communications program (I think it was called Crosstalk) to run a script on a second machine).
Any help would be appreciated. Maybe I am trying to do redirection improperly.
Ken Scott


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba, XP, legacy app dgermann Linux - Networking 3 06-30-2005 12:41 PM
setserial spd_hi (how dos and App 'request 38.4) dna3e8 Linux - Newbie 0 01-10-2005 12:21 PM
unix korn shell script that interact with windows java program ann124 Programming 5 11-09-2004 10:14 PM
KDE icons - changed by app/script? Andy@DP Programming 2 04-13-2004 04:07 PM
can't launch java app from shell script... LonAllen Linux - Newbie 0 07-07-2003 09:37 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration