50 pts.
 How to FTP from AS400 to PC network Drive
Need examples to automate FTP to PC network drive. This needs to take place whenever the file changes. Your support is greatly appreciated. Thank you.

Software/Hardware used:
ASKED: January 2, 2008  8:53 AM
UPDATED: March 8, 2010  2:50 AM

Answer Wiki:
You didn't specify what OS you were running, but if you are running Linux you could write a small cron job to run every 10 minutes or so using 'diff' to compare the two files and if a difference is found, send the file over. You could also run rsync if it's linux, however I've never used it so I can't comment on it.
Last Wiki Answer Submitted:  January 3, 2008  8:43 pm  by  Dcherman   15 pts.
All Answer Wiki Contributors:  Dcherman   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

This needs to take place whenever the file changes.

What kind of “file”? Database? Or streamfile? They’ll be very different.

Also, what will you be FTPing? The file that changed? Do you want to FTP it as changes are happening or after the changes are finished? How will you know it’s finished?

Do you have a FTP server running on the system that hosts the network drive? A FTP server needs to be running in order for a FTP session to be started. And of course, that PC will have to have a user ID that you can start the session under.

Tom

 110,135 pts.