Results 1 to 2 of 2

Thread: script to generate report

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Answers
    12

    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


  2. #2
    Expert Member
    Join Date
    Sep 2006
    Answers
    477

    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!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact