Hi all,
I am trying to write an automated process that hits a Linux server and SCP's files over to local machine.
From CPAN I got the following code.... but it doesnt work for me. There is no error message either...!!
Could you please give me a sample working code that has error handling..!!
I installed Net::SCP using PPM.
thanks in advance,
_Uday
I am trying to write an automated process that hits a Linux server and SCP's files over to local machine.
From CPAN I got the following code.... but it doesnt work for me. There is no error message either...!!
Could you please give me a sample working code that has error handling..!!
Code:
# from CPAN
$scp = Net::SCP->new("204.139.0.224");
$scp->login("udays");
#$scp->cwd("/dir");
$scp->size("tax.pl");
$scp->get("tax.pl");
#$scp->quit;
I installed Net::SCP using PPM.
thanks in advance,
_Uday