Shell scripting Program

Tags
shell, shell scripting, shell scripts

 
Thread Tools Search this Thread
# 1  
Old 10-06-2008
Question Shell scripting Program

Hi all,

I am new comers 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...
# 2  
Old 10-06-2008

To run the script every 15 minutes, put an entry in your crontab file like this:

Code:
0,15,30,35 * * * * /path/to/script

As for the script ... what part of it is giving you problems?

Post what you've written, and you'll get more help.

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Bash Scripting program rami-ali Homework & Coursework Questions 2 11-21-2018 11:57 AM
To check if the JAVA Program is successfully executed in sh shell scripting preema Shell Programming and Scripting 1 09-06-2017 08:03 AM
Shell script to read lines in a text file and filter user data Shell Programming and Scripting VikrantD UNIX for Dummies Questions & Answers 3 03-25-2014 04:28 AM
Help Scripting: Sync Photos Program abudis Shell Programming and Scripting 1 07-01-2013 02:56 AM
scripting an interactive program session nomadvisuals Shell Programming and Scripting 2 02-27-2012 03:22 PM
Perl scripting or shell scripting? Anna Hussie Web Programming 1 04-20-2011 05:08 AM
Shell Scripting vs Perl scripting Pouchie1 What is on Your Mind? 2 02-10-2011 01:21 PM
Android Scripting Environment: Shell Scripting and Android Neo Android 0 01-03-2011 04:10 PM
Shell scripting vs Perl scripting Pouchie1 What is on Your Mind? 14 09-06-2010 10:48 PM
Call Shell scripting from Perl Scripting. anupdas Shell Programming and Scripting 2 02-12-2010 08:07 AM
Grammatical error in scripting program. deepakagrawal13 Shell Programming and Scripting 1 12-23-2008 05:13 AM
Shell scripting Program balaji23_d Shell Programming and Scripting 1 10-06-2008 09:45 AM
shell program nivas Shell Programming and Scripting 8 02-21-2008 05:23 AM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 09:12 AM
shell program rameshparsa Shell Programming and Scripting 1 11-17-2005 01:18 PM