Hi,
I need to find/implement an application that FTPs (puts) all new files in a certain directory to an external storage unit. This application should check for new files every 10 seconds (leaving the FTP connection open in between the 10 seconds).
The easiest way would be if there are programs that I can use on solaris to accomplish this (I know some on Windows, but none on solaris).
Or maybe it can be done with scripts ? (I have no experience with that)
Or I could (in C++) fork and exec (solaris ftp) and use 2 pipes to communicate between my parent process and the ftp. But I'm not sure if it's possible to catch the output of the solaris ftp in a pipe, so that I can use it in my parent process. Until now I've only used uni-directional communication between parent and child process.
I hope to get some ideas on what you think is the best way to do this.
Thanks.