Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. starface245

    Automatic User input

    I finally found my solution and it works!! I didnt have to use expect, i think my problem was when I try to open the file, I use system. I should have use open. Now I have automatic user input. Thanks everyone for their help and info, learned lots of stuff about Expect and seems very useful.
  2. starface245

    Automatic User input

    here my code using Expect... #!/usr/bin/perl use strict; use warnings; use Expect; my $selection = "option1" my $openprogram = system("progam.exe"); my $exp = Expect->spawn($openprogram) or die; $exp-> send ("$selection"); It does not work :( .. I get error Cannont exec(0):no such file or...
  3. starface245

    Automatic User input

    After option 1 is done with x amount of time, then it goes to another option like 2 or 3.
  4. starface245

    Automatic User input

    About the last statment, the .exe opens a cmd line to run the program and the inputs from there.
  5. starface245

    Automatic User input

    The .exe needs the inputs from the command line. :( Other ways?
  6. starface245

    Automatic User input

    I got a program, once it execute the program (.exe), it gives 3 options to the User. Option1.. option2.. option3.. Depending on the User input, let say the User select by typing "option1", it runs option1. My question is that is there a way in Perl to write that so the User does not have to type...

Part and Inventory Search

Back
Top