can someone give me a few pointers on how to write a script that gets the current date, and checks a log directory for the previous day and runs a java program say genrpt.java. thanks