Ted Zeng wrote: > Thanks. You make it very clear. > I have assumed they should be the same. > >> > I took a look at Net::SSH and it seems it is not what > I want. It is much easier to install Net::SSH though. > > SSH has been a big headache to me. I wish OS X > just has telnet. It is good enough for my purpose. > I wish SSH has an option that says turn it into rlogin or > telnet. > > ted
Other than the installation, which I will certainly grant you Net::SSH::Perl can be a pain with its dependencies, especially on non-linux systems, what doesn't Net::SSH::Perl or Net::SSH provide that Net::Telnet would? There might be a solution to your issues if you can post some more about the problem. Regardless, in the end Expect should make either respond in the same way. Granted I wouldn't want to do it either, but Expect can handle just about anything, and Net::SSH::Perl's 'shell' method should provide the interactive capability needed when using Expect. You could always write a telnet server to run on Mac OS X in Perl ;-). Though I think it was wise for Apple to not even bother installing it, they wouldn't want to get a reputation for having M$ type of security settings... http://danconia.org