Geeks Talk

Prepare for your Next Interview




script to generate report

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 ...


Go Back   Geeks Talk > Operating Systems > Unix/Linux

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-15-2007
Junior Member
 
Join Date: Sep 2006
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
henri084 is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-03-2007
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 28 Times in 27 Posts
kalayama is on a distinguished road
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!"
Reply With Quote
Reply

  Geeks Talk > Operating Systems > Unix/Linux


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 01:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved