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
Need your suggestion please.. unknown2205 Shell Programming and Scripting 1 11-21-2005 02:45 AM
I want a suggestion camel High Level Programming 6 06-13-2003 07:59 PM
Suggestion tovsky Post Here to Contact Site Administrators and Moderators 1 08-07-2001 09:40 AM
Suggestion On Which OS to Use and Learn HWind UNIX for Dummies Questions & Answers 1 01-25-2001 04:28 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-02-2009
dellsh dellsh is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 9
need your suggestion

Hi all:
I need your suggestion about how to making this script
Purpose:-
Monitor log for the system
OS: Unix Sun Solaris 10
Hold oracle database 10 g

Life time for the system cycle to 48 hours

the system working as the follow
1- the system is divided into three steps
2- script run to check some service
3- after checking this services another scripts load data into table in DB

This is some script is repeated into the three step
Like service.sh I must check every step is the first

the scripts make log with this format
LogFileName_`date ‘+%d_%m_%Y%H%M%S’`

the status of the action in the script programmed with two option
successful or failed


So the only thing is unique with the log file is the time stamp
This is my suggestion to make monitor script

I make lookup table file cause I know what is the script is running and log output
Into each step

And I am trying to build script
1- check if any file add into file directory or not Within the same 48 hours (the duration of the system running)
2- look into the lookup table
3- make awk report show
StepName ScriptRunningName the status

Is what I think for programming my case good or there is some thing also
Please provide me with the steps is general and I will try to programming it
Thanks in advance
Mr Dell
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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