Prepare for your Next Interview
This is a discussion on script to generate report within the Unix/Linux forums, part of the Operating Systems category; 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 ...
|
|||
|
script to generate report
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
|
| Sponsored Links |
|
|||
|
Re: script to generate report
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!" |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do clients need professionals to generate reports? | Devang808 | Data Warehousing | 0 | 05-28-2007 05:24 AM |
| How to generate a hbm file | Geek_Guest | Java | 1 | 05-15-2007 02:27 AM |
| I'm getting URL of report but not actual report | Geek_Guest | Seibel | 0 | 05-13-2007 08:59 AM |
| Generate random password Using PHP | fred | PHP | 2 | 02-06-2007 08:56 AM |
| Create schema and generate DDL in WebSphere V5 | Lokesh M | JSP | 0 | 06-17-2006 08:01 AM |