A file monitoring script