poll a file on a remote FTP server and then transfer it

20 pts.
Tags:
AS/400
ftp connection
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?

Software/Hardware used:
AS400 to Intel

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
     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?   You can't have it both ways. Pick one.   ( can't ask the customer to do more than put the file in a directory)   Don't ask. Tell the customer it can't be done. Every few seconds, or even every few minutes, is ridiculous. If you need to do that continually and then process the file when you retrieve it, you're spending way too much system and network time.   Any problems (e.g., network interruption) will seriously disrupt handling same-name files.   Tom
    125,585 pointsBadges:
    report
  • Splat
    Is the customer's server visible on your network?
    6,895 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following