in reply to Re^2: Net::SSH2 related query
in thread Net::SSH2 related query
In print $chan "ls\n";, $chan is like a filehandle (open FH, '>', 'file.txt'; print FH "something\n";). The print command sends the characters over the SSH connection to the shell on the other end.
|
---|
In Section
Seekers of Perl Wisdom