Use the Expect module if the password is being handled below the tty layer.
Ken Wolcott

On Tue, Sep 16, 2008 at 6:29 AM, JMJ <[EMAIL PROTECTED]> wrote:

> On Sep 15, 10:15 pm, [EMAIL PROTECTED] (Jeff Pang) wrote:
> > 2008/9/15 JMJ <[EMAIL PROTECTED]>:
> >
> > > I need to open a program which I decided to use system but how do I
> > > stay in there and use variables to populate.
> >
> > use a open:
> >
> > open HD, "external_command|" or die $!;
> > while(<HD>) {
> >     my $output_line = $_;
> >     ...}
> >
> > close HD;
> >
> > The external_command will be run in a child, the parent will block
> > until the child die or exit, so you could let external_command always
> > run there and get its output in parent.
>
> Here is from my other post that I'm going to close.
>
> I'm using Perl to open lsnrctl in oracle and have it issues a few
> commands (automate) and then exit the lsnrctl.  I also would like to
> once I get in the program, after entering a few commands and default
> answers also pull issues a command that pulls a password in.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>

Reply via email to