Help required

Discussion in 'Perl Misc' started by Sunil Shukla, Jun 22, 2004.

  1. Sunil Shukla

    Sunil Shukla Guest

    Hi,

    I am coding a program in Perl which invokes another executable program
    (say program 2). But the problem is that when program 2 is run it asks
    user for some input. Since i have to run program 2 a lot of times
    through my own Perl program, it is not possible to provide the input
    to program 2 from console. Can i pass the value of input to program 2
    via any way. Program 2 is a dos based program and its not mine. I only
    have a exe of Program 2.


    Thanks a lot,
    Sunil
     
    Sunil Shukla, Jun 22, 2004
    #1
    1. Advertising

  2. Sunil Shukla

    Fatted Guest

    A nicer subject might have been something like "Providing input to
    external program run from Perl" or some such.

    Sunil Shukla wrote:
    > Hi,
    >
    > I am coding a program in Perl which invokes another executable program
    > (say program 2). But the problem is that when program 2 is run it asks
    > user for some input. Since i have to run program 2 a lot of times
    > through my own Perl program, it is not possible to provide the input
    > to program 2 from console. Can i pass the value of input to program 2
    > via any way. Program 2 is a dos based program and its not mine. I only
    > have a exe of Program 2.
    >

    Check out the Expect module from CPAN.
     
    Fatted, Jun 22, 2004
    #2
    1. Advertising

  3. Sunil Shukla <> wrote:

    > Subject: Help required



    Subject required.


    --
    Tad McClellan SGML consulting
    Perl programming
    Fort Worth, Texas
     
    Tad McClellan, Jun 22, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dinesh Upare

    help required urgent

    Dinesh Upare, Aug 13, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,009
    Carl Prothman [MVP]
    Aug 13, 2003
  2. Kashif
    Replies:
    6
    Views:
    542
    Kashif
    Nov 29, 2005
  3. SenthilVel

    Help Required for Help Context Id !!!!!!

    SenthilVel, Nov 30, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    3,146
    SenthilVel
    Dec 14, 2005
  4. Just D.
    Replies:
    0
    Views:
    447
    Just D.
    Mar 10, 2006
  5. Emiliano
    Replies:
    2
    Views:
    323
    Rajesh.V
    Oct 16, 2003
Loading...

Share This Page