Phoenix.pm: open sesame

Pablo at zunigatech.com Pablo at zunigatech.com
Sun May 21 04:04:41 CDT 2000


Tony:
I'm not sure if you've run into this before but I did install Expect.pm and
then went to install IO::Pty but got an error. 

1. cd .cpan
2. build
3. cd IO-Tty-0.3
4. make ... as below...

I've been reading through
comp.lang.perl.modules but no one has posted that particular question. Here's
the error I posted to that group:

error---------------------
[root at localhost IO-Tty-0.03]# make
cc -c  -Dbool=char -DHAS_BOOL -I/usr/local/include -O2    -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE -DPTYRANGE0=\"abcdepqrstuvwxyz\" -DPTYRANGE1=\"0123456789abcdef\" -DPTYTEMPLATE=\"/dev/ptyXY\" Tty.cTty.xs: In function `xsignal':
Tty.xs:352: warning: assignment from incompatible pointer type
Tty.xs:357: warning: return from incompatible pointer type
cc: installation problem, cannot exec `as': No such file or directory
make: *** [Tty.o] Error 1
------------------------------

I'm running RH 6.2. 

Hope everyone's having a good weekend, just got the Perl
Journal in the mail on Friday, and was just reading about Home Automation with
Perl. Pretty scary stuff :)

-Pablo 


On Fri, 19 May 2000, you wrote:
> At 08:15 PM 5/19/00 -0700, you wrote:
> >Greetings:
> >Hope everyone is doing well. 
> >
> >I'm looking to automate logging into a server and
> >I wanted to see if I could do it with perl, meaning, use perl as a shell
> >script. I don't plan on using this script as a CGI script! :) 
> >but use it like any shell script, to automate tasks...
> >
> >I noticed this book won't be out till July:
> >Perl for System Administration 
> >by David N. Blank-Edelman, Linda Mui (Editor)  
> >
> >Here's what I've tried so far:
> >----------the script:
> >
> >#!/usr/bin/perl-wT
> >
> >$ENV{"PATH"} = "";
> >
> >use strict;
> >
> >open(SSH, "| /usr/bin/ssh -c 3des -l username 127.0.0.1");
> >print SSH "my_password";
> >close(SSH);
> >
> >----------and what I get in response:
> >
> >[terminal]# perl s_download_db.cgi  (here I execute the script)
> >
> >Pseudo-terminal will not be allocated because stdin is not a terminal.
> >username at 127.0.0.1's password: 
> >
> >------------
> >
> >I'm wondering how I could "give" SSH the password? 
> >
> >Thanks so much.
> >
> >-Pablo
> >
> 
> Perl + Expect should do the trick.
> 
> Tony
> 
> 
> --
> --  Anthony R. Nemmer -- EdelSys Consulting
> --  http://www.swlink.net/~edelsys -- edelsys at edelsys.com
> --  ICQ #14638605 -- EFNet IRC Nicks: Teratogen PerlGod LLamaLord
> --  vCard:  http://www.edelsys.com/nemmer.vcf
> --  (480) 968-6438 --  P.O. Box 1883,  Tempe, Arizona 85280-1883
> --
> 
>    Brian Wilson is God!  =)
-- 





More information about the Phoenix-pm mailing list