in reply to Re^2: How can I connect to a Linux Machine from a Windows Box
in thread How can I connect to a Linux Machine from a Windows Box
getting a directory listing, then creating a directory in /temp, copying a .tar file from my local windows PC to this folder, extracting it and then running the setup program...my $host = "host123"; my $username = "bobjones"; my $password = "mypassword"; my $thost = new Net::Telnet( Timeout => 20, Host => $host, Errmode => "return" ); $thost->login( $username, $password ); my $prompt = "_MYPROMPT_"; $thost->prompt("/$prompt\$/"); $thost->cmd("set prompt = '$prompt'"); # depends on the shell in +use. my $command = "ls"; my @out = $thost->cmd($command); $thost->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can I connect to a Linux Machine from a Windows Box
by blackadder (Hermit) on Apr 05, 2007 at 14:16 UTC | |
|
Re^4: How can I connect to a Linux Machine from a Windows Box
by blackadder (Hermit) on May 03, 2007 at 12:13 UTC |