LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3972/0)
Reviews (626/0)
Press Releases (464/0)
Distributions (187/0)
Software (807/0)
Hardware (522/0)
Security (192/0)
Tutorials (337/0)
Off Topic (180/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events



The Tenth Commandment of system administration   
Tuesday, June 28 2005 @ 05:16 AM EDT
Contributed by: glosser

It's time for the final installment of the NewsForge's guide to system administration. We brought you part nine last week.

If you're a system administrator, eventually you're going to need to write a shell script. If you're like me and you enjoy scripting, you'll find reasons to write shell scripts for just about everything.

X. Thou shalt not waste time doing repetitive and mundane tasks

hell scripts are nothing more than a semi-sequential list of commands for your shell to run to automate a process that might take you days or weeks to do. This can include sorting syslog entries on a remote logging server, polling your servers for newly available network services, automating your backup policies, creating user accounts, and any other number of tasks. These tasks can be accomplished with any number of different shells, but by far the most common is bash, so that's what we'll focus on here.

I have always believed the best way to learn is by example, so we'll look at an actual shell script to explain some of the fundamentals. In the following example, we're going to take a look at a script I wrote to facilitate packet captures within a a network for visual playback in a program called EtherApe. Don't worry if you don't understand everything in it right away. I'll explain it all in due time.

Full tutorial

  [ Views: 1449 ]  


The Tenth Commandment of system administration | 0 comments | Create New Account
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No user comments.


What's Related
  • nine
  • Full tutorial
  • More by glosser
  • More from Tutorials


  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, and SQL.

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved