I have written a servlet that moves specific amounts of file from 0* folder to * folder (01 to 1) and process these files. I made a .sh file and inserted in cron task to run it after every one hour.
There are 12 folder on location of my server /home/savedCVs/ i.e.
My .sh file:
wget -q "http://www.myDomain.com/servlet/Variable?category=1&folderId=01&noOfFiles=212"
category=1 is destination foldername
folderId=01 is source folder name
Can I refine my .sh file that when 0* folder (say 01) became empty then change category=2 and folderId=02 and so forth and so on and when 06 become empty then stop ths shell process?
Thanks in anticipation