The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell scripting Program balaji23_d Shell Programming and Scripting 1 10-06-2008 09:31 AM
At job in SHELL SCRIPTING grajesh_955 UNIX for Advanced & Expert Users 2 07-16-2008 03:06 AM
c shell scripting bigboizvince Shell Programming and Scripting 1 03-25-2008 06:33 AM
Shell scripting sreejith SUN Solaris 2 10-08-2006 06:38 AM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 05:12 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-06-2008
Registered User
 

Join Date: Oct 2008
Posts: 2
Question Shell scripting Program

Hi all,

I am new to this forums. I need one help from urs.

My requirement is to fetch the records from the log file for every 15 mins and write the datas to the new file...

The log file which is located in the 21/09/2008 directory.

In 21/09/2008 directory, number of log files are there.


so every log file contains differnet information respect to the process details.

The log file looks like below:

start time: 22:00
End time :24:00
Process name: abcd
Start date: 21/09/2008
Elapse time: 120mins

when user give these Input parameters are :

Date: sysdate(or any date which user likes)

I want to execute the query automatically every 15 mins.

I want to write the data in the current directory from which we ran the script in the format of .xls file

The output file looks when i give the input parameters date:21/09/2008

it will search all the files which is located in the 21/09/2008 directory and read into the .xls file

process name start date elapse time start time end time
abcd 21/09/2008 120mins 22:00 24:00

start time: 22:00
End time :24:00
Process name: abcd
Start date: 21/09/2008
Elapse time: 120mins


please asssit me how to do that...
Forum Sponsor
  #2  
Old 10-06-2008
radoulov's Avatar
addict
 

Join Date: Jan 2007
Location: Milano, Italia/Варна, България
Posts: 1,859
No duplicate posting, please read the rules!
Continue here.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0