June Tantoolvesm wrote: > > Hi, Hello,
> I hope this is the right mailing list. I have two > questions. > > 1. I was wondering if anyone here knows what this > command is doing, besides calling the program > "neighbor"? > > system ("neighbor >/dev/null 2>&1 << ! $inpwd 2 3 Y > !") > > I understand up to "2>&1", does anyone knows what > comes after that. I am guessing they are all > arguments, but what do "<<" and "!" in particular > mean? That is a "here document" and is used for input. > 2. Ok, the situation is a bit hard to describe, but > here goes. I have a program that is interactive > (character user interface), and I want to call this > program from perl. So far I know that system() can > call the program, but how do we interactively > communicate with the program afterwards? By that I > mean, which commands are available? Or are there other > methods for doing so? I have heard of batch files, but > I'm not sure how to apply that here. http://search.cpan.org/~rgiersig/Expect-1.15/ http://search.cpan.org/~djerius/Expect-Simple-0.02/ John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>