The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 07:38 AM
invoking a shell script inside cgi shell script smriti_shridhar Shell Programming and Scripting 2 07-09-2008 01:50 AM
To call/execute a shell script from a shell script konark UNIX for Dummies Questions & Answers 1 10-26-2007 05:16 PM
How to Run a shell script from Perl script in Parent shell? hifake Shell Programming and Scripting 16 08-28-2007 08:42 PM
Have a shell script call another shell script and exit heprox Shell Programming and Scripting 2 11-20-2006 08:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2008
vitchi vitchi is offline
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
  #2 (permalink)  
Old 07-24-2008
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 548
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.
  #3 (permalink)  
Old 07-24-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
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) ...
  #4 (permalink)  
Old 07-25-2008
johnf johnf is offline
Registered User
  
 

Join Date: May 2006
Location: England
Posts: 284
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.
Sponsored Links
Closed Thread

Bookmarks

Tags
unix commands

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 07:44 AM.


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