Hi,
automated FTP that have error check and each product FTP will used the same userid/password to post(transfer) the file(s) from their <product> directory at UNIX to their <product> folder at Windows.
such senarios as follows:
NOTE:
=======
** Variable **
* The <product> is variable e.g ELA, KLA, GLC, VIN
* <filename> is composed with <Product>_<yyyymmdd>
* both the UNIX and Windows are using the same path name based on the <product>
** Fixed **
* The remote server to be transfer which ip address,
* The UserID and the Password, and
* The UNIX Directory for the failure-to-transfer
1. FTP the varible <filename> (e.g ELA_20060407.dat)
from the UNIX server with designated path (eg. ELA)
to a given Window server (ip address e.g 196.166.100.100)
using the userid/password (e.g producer/pass1234)
and transfer to Windows with the designated path (e.g ELA)
2. ALSO in the event of failure to transfer due to any reason, there should be transfer the local predefined UNIX directory (e.g FTPError) for traced or reference.
* Can I do it in pure C or UNIX Script?
UNIX is Sun OS, Windows is Windows 2000.
I am lost. Please kindly advise. Greatly Appreciated.