Thread Net::SCP zwischen Windows und Unix (2 answers)
Opened by WolverineJ at 2008-06-26 13:05

renee
 2008-06-26 13:53
#111547 #111547
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Du fragst keine Rückgabewerte ab...

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
use warnings;
use Sys::Hostname;
use Net::SCP qw(scp);

$hostname="XXX";
$username="xxx";
$source="/dir/file";
$destination="C:\\dir2";

$scp = Net::SCP->new("$hostname");
$scp->login("$username") or die $scp->{errstr};
$scp->get("$source","$destination") or die $scp->{errstr};
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Net::SCP zwischen Windows und Unix