Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing external programs in Perl

Tags:

linux

perl

I am executing a few external programs from a Perl script and want to automatically handle prompts from that program. I know what the prompts are, they are not error conditions, and I want the script to handle them and not the user.

What's best practice for this?

Thanks

like image 814
MadHacker Avatar asked Feb 10 '12 18:02

MadHacker


1 Answers

My first stop would be the Expect module. I'm not sure if I'd need a second stop after that.

like image 57
CanSpice Avatar answered Sep 27 '22 17:09

CanSpice