The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Programmation of script. vitchi SUN Solaris 15 07-24-2008 04:38 AM
invoking a shell script inside cgi shell script smriti_shridhar Shell Programming and Scripting 2 07-08-2008 10:50 PM
To call/execute a shell script from a shell script konark UNIX for Dummies Questions & Answers 1 10-26-2007 02:16 PM
How to Run a shell script from Perl script in Parent shell? hifake Shell Programming and Scripting 16 08-28-2007 05:42 PM
Have a shell script call another shell script and exit heprox Shell Programming and Scripting 2 11-20-2006 05:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-24-2008
Registered User
 

Join Date: Jul 2008
Posts: 19
Script Shell Programmation !!!

Hi All,

I heard lot of things about programmation of script shell and since i'm doing some daily administration of solaris (like checking usage of file system, performance, hardware check ...so on) i know that if i'll use script shell to programme some script this wil really help me to get easy life.

BUT i don't have any idea about programmation of script shell, just what i know that it's like programmation of solaris commands via C or C++, righ tor true !!!

So if someone can help on how to start on programmation of script shell, if can give me an idea about it i'll will really appreciate it.

Note that i don't want to start from learning lot of documentation, believe me in the beginning it's really very boring.

Thx in advance for your usual support.

Life is nice with INTERNET
Reply With Quote
Forum Sponsor
  #2  
Old 07-24-2008
pupp's Avatar
cap_10hdx 1
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 340
i know you said no docs but sorry bud... youre in unix land!! everything including the kitchen "sync" has a man page. so here we go.

Advanced Bash-Scripting Guide

good starter docs on how to start programming shell scripts.

----------------

however, if you tell us what you are trying to monitor and what not, we can help you along. the commands sar,df,du,vmstat,iostat,prtdiag,prtconf,netstat, etc etc etc are all good basic steps in your direction.

there are plenty of reporting tools out there as well.
Reply With Quote
  #3  
Old 07-24-2008
joeyg's Avatar
Moderator
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 983
Wink Automation is really the final step.

What you need to do, in the following rough order, is:
a) determine what you want to look at
b) begin trying out different commands to see what you can learn and what the output looks like
c) pick formats for what you wan tthe output to look like of the analysis
d) finalize program to create desired output
e) automate so as to run regularly (as a cron job) or on an as-needed basis

So... start at step (a) ...
Reply With Quote
  #4  
Old 07-25-2008
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
Also go and get yourself a good scripting book like the O'Reilly set, you will find them invaluable. Also Google, Wikipedia are a good source for man pages.

You really need to get to grips with shell scripting before you try writing even simple (Noddy) monitoring scripts.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:07 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