Now output shows:$hostname =~ s/\r//g;
And the command is doing what it should. To learn is to struggle.Launching [[ssh -q user@host 'sed -i "s#.*HOSTA#ssh-rsa AAAAB3NzaC1yc +root@HOSTA#gI" /tmp/test.txt']] at ./key.pl line 81.
In reply to Re^12: Send password in Net::SSH::Expect
by gafaman
in thread Send password in Net::SSH::Expect
by gafaman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |