perl and DOS I/O

From: Hemant Kumar (kumarh_at_gmail.com)
Date: 08/23/04

  • Next message: Alan Connor: "Re: [OT] Perl to C Converter?"
    Date: 22 Aug 2004 18:15:17 -0700
    
    

    Hi,
       I need to run a n iterations of a dos program from perl. I am using
    System ("program args");

    There are two interactions with DOS that I need to take care of though

    1) The program spews output that goes to the DOS window. Is there a
    way to absorb it and process it from perl script?

    2) Once the program reaches a certain point in execution, it requires
    an input from the keyboard to move ahead. How can I issue this input
    from the perl script.

    Thank you for giving this a thought.
    Hemant


  • Next message: Alan Connor: "Re: [OT] Perl to C Converter?"

    Relevant Pages

    • Re: Bit Rot (was Re: We are doomed..)
      ... DOS is the only environment that is currently well-supported, ... DirectX support ... Cf. recent RGRD flamewar regarding Python. ... Perl has a long tradition of general backward compatibility. ...
      (rec.games.roguelike.development)
    • Re: help for creating dos based perl exes.
      ... > I want to generated DOS compatible executable of my perl code. ... I am using perl version 5.8.1. ... > this gives me bad command, and also lists a list of files saying that ... I do think you mean 32bit Windows, not DOS. ...
      (perl.beginners)
    • Re: One question
      ... As does perl, though it does sometimes get confused about where exactly ... You can start it from DOS and see the error messages. ... even a Windows problem since getting around that is in fact trivial ... It is a documentation problem (and I guess arguably an interface ...
      (comp.lang.perl.misc)
    • I get "no command found"
      ... When I run command line perl something gives me errors ... DOS and Unix, ...
      (perl.beginners)
    • Assigning output of !perl to a matlab variable
      ... I'm using!perl in matlab to escape to DOS and run a perl script ...
      (comp.soft-sys.matlab)