obviously you will use one of the above options Net::SSH works well for me to execute a remote operation ... then the best way I have found is ...
#!perl my $dir = "/home/foogod"; my @array = `ls -ut $dir`; print "$array[0]";
This will print the latest modified/created file ...
- f o o g o d
In reply to Re: ssh/scp most recent file?
by foogod
in thread ssh/scp most recent file?
by mr.dunstan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |