in reply to Re^3: Automatic User input
in thread Automatic User input
Program Died.#!/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 directory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Automatic User input
by hbm (Hermit) on Feb 03, 2011 at 22:28 UTC |