in reply to Re: user net:openSSH and File::find::Rule together.
in thread user net:openSSH and File::find::Rule together.
the scripts outputs this: bash: line 15: stdin_data: command not found I do not understand what bash has to do here since we are full perl. thanks in advance for the coop.$ssh->error and die "Couldn't establish SSH connection: ". $ssh->error; my $output = $ssh->capture(stdin_data => <<'EOS', '/usr/bin/perl'); use File::Find::Rule; my $today = time(); my $onehour = $today - (60*60); my @files = File::Find::Rule->file() ->name("*.0") ->mtime("<$onehour") ->in( "/mypath/" ); for my $file (@files) { print "$file\n"; } EOS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: user net:openSSH and File::find::Rule together.
by salva (Canon) on Feb 15, 2018 at 17:16 UTC | |
by garcimo (Novice) on Feb 15, 2018 at 18:34 UTC | |
by salva (Canon) on Feb 15, 2018 at 18:39 UTC |