[PLUG] perl question

peter pweber1@purdue.edu
Tue, 15 Feb 2000 20:50:28 -0500 (EST)


thanks! figured it would be something that simple.. :)

peter

On Tue, 15 Feb 2000, James C. Lewis wrote:

> 
> That's exactly what `telnet` would do.  Using the backticks causes perl to
> capture everything sent to STDOUT.  That's useful for something like:
> 
> @lines = `tail -f /var/log/messages`
> 
> You need to use system("telnet") instead.
> 
> -James
> 
> On Tue, 15 Feb 2000, peter wrote:
> 
> > i'm fiddling with perl, and i have a question that i can't seem to find an
> > answer to.. i have a perl script that i want to run telnet or ssh from
> > (depending on user input), but when i finally get to the point where i run
> > it (with `telnet $ARGV[0]` etc..) it run's, but doesn't show the output..
> > that is, it seems to be eating all the output.. so how do i get perl to
> > call a unix command in the middle of the script, have the program act
> > normally, and then continue after the unix command exits?
> > 
> > thanks,
> > peter
> > 
> > ------------------------------------------------------------------
> > peter weber                    "To know that we know what we know,
> >                                and that we do not know what we do
> > KB9TDV                         not know, that is true knowledge."
> > pweber1@purdue.edu                                      -Confucius
> > ------------------------------------------------------------------
> > 
> > 
> > 
> > 
> > ____________________________________________________
> > The Purdue Linux Users' Group (PLUG) mailing list.
> > plug mailing list  -  plug@csociety.purdue.edu
> > http://csociety.ecn.purdue.edu/mailman/listinfo/plug
> > 
> 
> 
> -James C. Lewis
>                 _
>    /_ _  _  _  / )     /  _    ' _ 
> (_/(///)(-_)  (__ .   (__(-((//_)  
>                                    
> PUCC Information Center Consultant
> jclewis@purdue.edu
> 
> Please place all complaints in this box --> []
> 
> 

------------------------------------------------------------------
peter weber                    "To know that we know what we know,
                               and that we do not know what we do
KB9TDV                         not know, that is true knowledge."
pweber1@purdue.edu                                      -Confucius
------------------------------------------------------------------