Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Delete files from server after downloading using SFTP

by hbm (Hermit)
on Jun 11, 2013 at 21:15 UTC ( #1038341=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
       sub removeRemoteFile {
          my $file = shift;
          return FALSE;
  2. or download this
       sub removeRemoteFile {
          my %args = @_;
          return FALSE;
  3. or download this
       sub getFile {
          my %args  =  @_;
          unlink "$args{LOCAL}/$name"   if -f "$args{LOCAL}/$name";
          return FALSE;
  4. or download this
       for my $file ( ... ) {
          if (getFile( ... )) {
             warn "Couldn't download $args{REMOTE}/$file!\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038341]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-11-26 14:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (701 votes), past polls