in reply to How do I send a password to a command I start with Perl's Expect.pm
How do I send a password to a command I start with Perl's Expect.pm
$exp->send("string\n");
Of course, you haven't started any commands with Expect, so that's a very odd question to ask.
I'm not allowed to install another module(politics/not rights).
So if I post my code here, you can use it, but if I post on it on CPAN, you can't? That doesn't make any sense. Perhaps you could clarify why you think you can't install a module.
If it's any of the above, address the issue and install Net::SSH::Expect. If not, then maybe it's one of the following:
These lists are far from exhaustive. If your situation doesn't match, let me know what the situation is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I send a password to a command I start with Perl's Expect.pm
by Anonymous Monk on Oct 23, 2010 at 02:00 UTC | |
by ikegami (Patriarch) on Oct 24, 2010 at 08:34 UTC |