in reply to copy files on sftp to local dir and delete copied file

Maybe the actual process you want to do is more like "rsync."
  • Comment on Re: copy files on sftp to local dir and delete copied file

Replies are listed 'Best First'.
Re^2: copy files on sftp to local dir and delete copied file
by u65 (Chaplain) on Sep 25, 2015 at 10:48 UTC

    +1

    Update: I guess a plus one doesn't mean anything here, but what I mean is I agree that rsync can probably provide a solution.

    Update 2: Specifically, I recommend trying Perl module File::Rsync.