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 and shell scripting languages 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 12:31 PM
At job in SHELL SCRIPTING grajesh_955 UNIX for Advanced & Expert Users 2 07-16-2008 06:06 AM
c shell scripting bigboizvince Shell Programming and Scripting 1 03-25-2008 08:33 AM
Shell scripting sreejith SUN Solaris 2 10-08-2006 09:38 AM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 08:12 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2008
Registered User
 

Join Date: Oct 2008
Posts: 4
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...
Sponsored Links
  #2 (permalink)  
Old 10-06-2008
radoulov's Avatar
addict
 

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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 07:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66