1

Perl SSH without a perl module

view story
linux-howto

http://www.unix.com – I'm trying to create a perl script that will do 1 SSH session, but be able to write multiple commands to the session and receive multiple outputs. I know there are modules out there like Net:SSH::Perl, but I'm not allowed to use it. I was thinking of doing something like an open3 on an ssh session. After that, I would potentially be able to send commands and receive output from stdout and stderr (maybe). I'm thinking there's a flaw here in my logic, but I can't think of what it is. Before sitting down and writing myself into a corner, have any of you done something like this before? Can (HowTos)