I have a customer who will put a text file many times a day in a pc directory,
I need to open an FTP connection to this PC server (no problem), I need to poll the directory every few seconds check to see if the file exists ( can't ask the customer to do more than put the file in a directory) and then execute an RPG program to input the data in the file and continue polling the directory to look for the next file/ The file will always have the same name..
I don't want to open and close the FTP connection every few seconds.
How can I open the FTP connection and poll the directory every few seconds?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!