in reply to How do I get expect.pm to ignore special characters?
Do the passwords have the same special characters on the different machines. Some "special" characters are treated differently inside double quotes. To avoid that use single quotes.
$ssh->send( 'rootpasswordwithspecialcharacters' . "\n" );The single quotes are used to protect that characters in the root password. The newline is then concatenated to the end, since \n depends on being in double quotes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I get expect.pm to ignore special characters?
by amagana (Acolyte) on Apr 15, 2015 at 18:59 UTC | |
by FreeBeerReekingMonk (Deacon) on Apr 15, 2015 at 20:08 UTC | |
by sn1987a (Curate) on Apr 15, 2015 at 19:50 UTC | |
by amagana (Acolyte) on May 04, 2015 at 15:26 UTC | |
|
How do get a list of failed servers?
by amagana (Acolyte) on May 12, 2015 at 18:11 UTC | |
by sn1987a (Curate) on May 14, 2015 at 18:32 UTC |