in reply to rlogin

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