Click to See Complete Forum and Search --> : Sending -enter- to an executable with perl


kjartan
06-28-2001, 09:35 AM
I need to interact with an executable with perl. On the CLI I type 'bibfind -s -P /usr/dict/papers/skyrslur' and then it then prompts me for a search string. I thought I could use system("'bibfind -s -P /usr/dict/papers/skyrslur \n $search"); but that doesn't seem to work. Please reply if you have any ideas on how to implement this.

TIA
-Kjartan

Salmon
06-28-2001, 10:38 AM
You should check out the Expect module. You can find it at CPAN . . .

http://search.cpan.org/search?dist=Expect.pm