Hi Experts,
Am new to scripting, need your help in building an script, which can run in Task Scheduler.
Here goes my scenario...
I have Linux box (cent OS), in which every day *.txt files will be created in the following format
"20130813-091152-1376365312.882813.txt". Every day roughly 600 files will be created.
I have an other box with Windows OS(Server 2008) with huge space in d drive.
My requirement is as follows...
1. Should Create a sub-folder and name it in date format (yyyymmdd)on windows box.
2. copy all the related data, basing on the date stamp from Linux to the newly created folder
3. Delete all the data basing on the date stamp, from the Linux box.
4. Like wise everyday a new folder shall be created and all the data should be moved from Linux to windows box.
5. Finally, the trick is, this script should work only on condition, where Today minus 15 Days is the condition. Means it should start working only on the files, which were 15 days back from today, leaving all these 15 days on the Linux box.
I tried different combinations of the scripting, available in this forum, but in vain.
I need your help in building a script
Hope am clear in asking.
Thanks in advance.