Posted: 2013-07-03 21:46
Hey guys, everyday I have a server that has a log file made every day, the log file has a name such as log_20130702 and log_20130703 etc etc. What I want to do is every morning take the log file from the previous day (I.E. if today is July 3rd, take the log from July 2) and throw it in a FTP server. I would want this to be done automatically. How would I accomplish this?
Location: Prague, Czechia
For scripting and scheduling in general, start here:
To select the yesterdays file only:
If you can rely on a relative time between creation of the log and run of the script, you can do with simple file mask with time interval constraint, like:
For other (more exact, but also more complicated) solutions see:
You can post new topics in this forum
And it's free!