Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have looked in perl monks to find out how to interactive login. How can I pass the password to the target machine.I am seeking the most basic way to do this. I simply don't grasp how to get to password after an rlogin or ftp.expect is not installed on this machine and security is not an issue.
Kevin G.

Replies are listed 'Best First'.
Re: rlogin
by McD (Chaplain) on Mar 20, 2001 at 03:05 UTC
    As long as security really isn't an issue, I'm quite fond of Net::Telnet, q.v.

    Properly set up, it can grok logging into a host with a username and password, running a simple command, and spitting back the output.

    Peace,
    -McD

Re: rlogin
by archon (Monk) on Mar 20, 2001 at 03:07 UTC
    For rlogin, I would recommend looking into Net::Netrc. FTP is more straightforward. Simply include the password as a paramater to a Net::FTP object.