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
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
Well- getting date is fairly simple : a simple `date` will get the date.
getting previous day is tricky - but can be written (Think how you can get it, if you can't I will help ya I really wonder why you need previous date though).
Then the last command should be to run your code! (Same as you would run the .java from Unix shell!). Simple as that!
Cheers!
Kalayama
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"