Doesn't the passwd command require user input? I see nothing in your code that would be passing along the old password, new password to the passwd program. In fact, I see nowhere that a new password is even captured or stored.
My suspicion is that you probably would be better off using expect for what you want to accomplish.
Scott
In reply to Re: Net::SSH::Perl and Passwd
by helphand
in thread Net::SSH::Perl and Passwd
by u235sentinel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |