My Task : Need to look for any new/updated files in particular directory of Server A. Once a file new/modified file is present on this directoty, I will need to ftp that file to Server B.
Can I do this with Autosys and shell scripts ? or will a Java program be more appropriate for this task ?
If I go with Autosys, I can setup a file watcher job. On success I can trigger another job. But how will this job know the file name ? Is file watcher smart enough to pass the file name as parameter to another job ?
Please help....
The file watcher job is for checking the existence of a file and checking the size of it. You have to know the name of the file in advance. In your case if you can receive any number of new files whose names you don't know beforehand, the file watcher job is not going to work.
One plausible solution can be:
ls -l
of the directory you are watching and save it to a file