Source trigger in Unix shell

Hi All,

Is ther any way to write the script with source trigger ?
To trigger the script on particular time we have crontab.
Similarly in a path, when a file comes particular script has to run.

Thanks:)

What system are you using?

i am using KSH.

Thanks

KSH is a shell. I was asking which operating system are you using?

Sorry ...AIX system

Do you have influence over the design of the file transfer process?

Normal technique is to transfer the file under a temporary name and then the transfer process renames the file to the correct name. This prevents the problem of processing a file mid-transfer or processing a failed transfer.

Some good designs send an extra "finished" file when there are several files and the "finished" file contains checksum data for the transferred files.

Once you are sure that you will only see a correct and fully transferred file it is easy to write a script to run from cron to check whether the file is there. The script itself will need a mutex process to stop a second copy of the script running concurrently on the same file.

Methyl,

I dont have influence on file transfer process.:(...
I have few doubts from ur post...
You said it is easy to write a script to un from cron to check whether the file is there..How?
Pls let me know...

@jesu
Please write in proper English and avoid text speak.