Hi;
  I don't know of any other way to exchange data beneath the tty layer other
than TCL+Expect or Perl+Expect in an automated/asynchronous manner on
UNIX/Linux.  If you are on Windows maybe there is something but I don't know
of it.

  Perhaps somebody on Perl Monks (http://www.perlmonks.org/) might know the
answer.

Ken Wolcott

On Tue, Sep 16, 2008 at 12:10 PM, Sweet J <[EMAIL PROTECTED]> wrote:

>  Hi,
>
> Its just what my boss told me...  she said we can't ask for anymore
> modules.. Just her rules.  So is it definitely not possible to do it
> anopther way?  Are you pretty experienced with Perl?  I definitely am not...
> I only started learning it a week ago and she wants me to write all this
> code since we can't use Expect.  The error is thrown since it has to be
> tty... Is there another way around it?
>
>
> Thanks a bunch,
> J
>
>
> ------------------------------
>
> Date: Tue, 16 Sep 2008 11:11:58 -0700
> From: [EMAIL PROTECTED]
> To: beginners@perl.org; [EMAIL PROTECTED]
> Subject: Re: How to open a prorgam and stay in it until done..
>
>
>
> Hi;
>   What reasoning have you been given stating that you cannot use this
> module?
>
>   If it is because you cannot become root to install the Expect module,
> then you can install in an alternate location.
>
> Ken Wolcott
>
> On Tue, Sep 16, 2008 at 10:38 AM, Jerrianna Fox <[EMAIL PROTECTED]>wrote:
>
> Thats what I thought you might say.  I have been told that we cannot ask
> for that module.. so is there another way to go about doing this?
>
>
> On Tue, Sep 16, 2008 at 11:14 AM, Kenneth Wolcott <
> [EMAIL PROTECTED]> wrote:
>
>
> 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/
>
>
>
>
>
>
> ------------------------------
> See how Windows Mobile brings your life together—at home, work, or on the
> go. See Now <http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/>
>

Reply via email to