--- Octavian Rasnita <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> You need to use:
> 
> $ftp->get("/path/to/remote/file",
> "/path/to/local/destination_file");
> 
> Octavian
> 


Also you can use

$remotedir = qq(/path/to/remoteserver/dir/);
$sftp->cwd($remotedir) || die "CWD to folder outbound
failed!: $!",
   
## OHMONSTER here is the remote file
 foreach ( $sftp->ls() ) {
  if (/${$fref}\d+\w+/) {
   $OHMONSTER = $_;
   $sftp->get( $OHMONSTER, "$localdir/$OHMONSTER" )
     || die "SFTP get from xxxx.com failed!: $!",



 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to