starzstar has asked for the wisdom of the Perl Monks concerning the following question:
use Expect; my $login ="/my/app/test autoupdate"; my $update = Expect->spawn($login) or die "Can't run autoupdate : $!\n +"; print "Autoupdate $login\n"; if($update->expect(6,'Update?')){ print "spawn continue"; my $exp = Expect->send("y\r");} else { print "not spawn";} print "Test is $exp";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: expect send is not working
by Loops (Curate) on Aug 02, 2013 at 11:22 UTC | |
by starzstar (Initiate) on Aug 05, 2013 at 05:57 UTC | |
|
Re: expect send is not working
by choroba (Cardinal) on Aug 02, 2013 at 12:39 UTC | |
by starzstar (Initiate) on Aug 05, 2013 at 05:59 UTC | |
|
Re: expect send is not working
by kcott (Archbishop) on Aug 02, 2013 at 11:12 UTC |