Hi,
I will get the files every 2 minutes in to unix directory.
Now i need to process the files in FIRST IN FIRST OUT...
here i am facing the problem ,how can i get the old file name based on time and need to pass the same file name to my another job as parameter.
Regards,
Rajesh
Need routine/job to get the old file name based on time
Moderators: chulett, rschirm, roy
How are you planning on processing these files, especially with them arriving 'every two minutes'... looping job? Multi-instance jobs? Is it going to take longer than two minutes to process any given file?
Getting the order of the files is just a small part of what you need to do and that can be as simple as a "ls -t <pattern>" listing to list them based on time descending or "ls -tr <pattern>" for time reversed, as in ascending or oldest first.
Getting the order of the files is just a small part of what you need to do and that can be as simple as a "ls -t <pattern>" listing to list them based on time descending or "ls -tr <pattern>" for time reversed, as in ascending or oldest first.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers

