Auto FTP from UNIX to Windows Server

Hi,

I am a not strong programmer and now my boss ask me how should I do a job to automated FTP that have error check.

I know about:

  • using system() to call a command to trigger ftp in C Coding.

The senarios as follows:

  1. FTP the file(s) (e.g ELA_20060407.dat) to a given LAN server (with ip address e.g 196.166.100.100) using the userid/password (e.g producer/pass1234) and transfer to the designated path which is <variable>.
    eg. for ABC Product info file will be transfer to ABC sub-directory

  2. if in the event of failure to transfer due to any reason, there should be transfer the local directory named FTPError for traced or reference.

  • Can I do it in pure C or UNIX Script?

The environment:
I am using Pro-C (Oracle SQL & C Programming).

Please help.
:confused:

In our FAQ there is a good thread on how to automate ftp.