There is an error in the code I provided, and you inserted the lines in a different order. The three lines for the headers in change_password should be:
my $my_header = $header; $my_header =~ s/system/$system/; $ssh->print_log_file($my_header); # <<<<< this corrects the error in m +y previous post
Use these three lines, in the order provided here
In reply to Re^17: expect.pm header
by sn1987a
in thread expect.pm header
by amagana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |