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?
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?
Comment