Search Results

Search: Posts Made By: imran_affu
35,951
Posted By DGPickett
List what you have and what they have, and using...
List what you have and what they have, and using comm -23, download what is missing, gives auto recovery after outage.
35,951
Posted By Shell_Life
This code will give you the most recent file...
This code will give you the most recent file based on "mmddyyyy" in the file name:
sed 's/\(.*_\)\(..\)\(..\)\(....\).txt/\4\2\3 &/' input_file | sort -r | head -1 | sed 's/.* //'

input_file:
...
35,951
Posted By radoulov
If Perl is acceptable: perl -MNet::FTP -e' ...
If Perl is acceptable:

perl -MNet::FTP -e'

($host, $user, $pass) = @ARGV;

$ftp = Net::FTP->new($host) or die "$@\n";

$ftp->login($user, $pass) or die...
35,951
Posted By kamalkishore
When a ftp is done, it may not be possible to...
When a ftp is done, it may not be possible to list the files based on time (creation).

In my opinion best bet is if you can create the file name by appending the date and then ftp(pull) the...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy