I've been asked to code a method to move FTP files from 'many' directories to 'one'.
Files to be moved must be older than 15 minutes OR have completed their upload.
On my first pass at the problem I'm tackling the time-based variable first.
Getting the file in kermit is easy enough. I can even setup a variable based on time -15 minutes ...
#!/usr/local/bin/kermit + (snip) ftp open \%1 /user:\%2 /password:\%3 assign minus15z \fcvtdate(\v(timestamp) -00:15,3) (snip) ftp cd \%dir ftp mget *
But I'm stuck on how to apply the variable 'minus15z' to the mget command.
It's obvious, I'm sure I'm just missing something easy.