Any DirectoryListener in Unix?

hi,

Problem: List the files in the order they have arrived to a particular directory.

Soultion?

Is it possible with Unix shell script to listen a particular directory and records the filename of its arrival in a list?

Any effort will be appreciated.

Thanks.

Looks like homework.

A way that is unlikely to be accepted for homework purpose, but probably practical for other uses:
http://oss.sgi.com/projects/fam/index.html