Hello !!!
Thanks for the suggestion. I tried your suggestion and confirmed that after spawn the ssh session, the expect object is not getting the password prompt.
I think that the problem is with the EXPECT package itself. I think the package doesn't work on the PPC machines. After installing the perl EXPECT package, I attempted the run the tests that are provided as part of the package and the very first test itself failed. Check out the below !!!
root@F101-8:/tmp/perl-modules/Expect-1.18# ls
Changes Expect.pod META.yml Makefile.PL blib pm_to_blib tu
+torial
Expect.pm MANIFEST Makefile README examples test.pl
root@F101-8:/tmp/perl-modules/Expect-1.18#
root@F101-8:/tmp/perl-modules/Expect-1.18# perl Makefile.PL
Writing Makefile for Expect
root@F101-8:/tmp/perl-modules/Expect-1.18# make
Manifying blib/man3/Expect.3
root@F101-8:/tmp/perl-modules/Expect-1.18# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..36
Basic tests...
ok 1
Use of uninitialized value in numeric eq (==) at test.pl line 37.
not ok 2
# Test failed at test.pl line 22.
Died at test.pl line 22.
make: *** [test_dynamic] Error 255
root@F101-8:/tmp/perl-modules/Expect-1.18#
Does any one know how to fix the issue in the Perl Expect Package? Or is there a way to bring up the issue on CPAN.
Thanks
Sri
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|