Netw 240 Devry

Topics: Unix shell, Shell script, Scripting language Pages: 7 (1651 words) Published: February 15, 2012
NETW240 Shell Scripting – Class Project Guide

Shell Script Project Paper Guidelines
Shell Scripting Project Paper Guidelines
UNIX system administrators write shell scripts to automate repetitive administrative tasks that would otherwise take up a large portion of their daily work schedule. For example, a shell script can be written to perform the nightly system backup. The script can be scheduled in crontab to execute after hours when the system is not being used. The shell script benefits the company and administrator since a trip back to work later in the evening is unnecessary.

Many other system administration tasks can be automated to relieve the administrator of having to lose valuable time performing routine, but necessary, tasks. The list shows a few of the daily activities that can be automated through shell scripting:

* Parsing user directories to check for large files that eat up valuable disk space; * Logging user log-in activity to detect unauthorized remote access attempts; * Checking system and user files for suspicious activity; and * Checking system file permissions to ensure system security.

Shell Scripting
A shell script is a file containing a sequence of UNIX shell commands that can be interpreted by the UNIX shell. The UNIX shell is a command line interpreter that interprets valid commands entered via the keyboard. The shell can view a list of UNIX shell commands listed in a file and sequentially interpret each command on a line-by-line basis – serving as a programming language. The following is a sample shell script that examines a file to determine if it is a regular text file or a directory file:

# Sample UNIX shell script named
# Borrowed from a book entitled, The bash Shell, Second Edition, by -------------------------------------------------
# Cameron Newham and Bill Rosenblatt. Publisher: O'Reilly. Second Edition -------------------------------------------------
# January 1998. ISBN: 1-56592-347-2, 336 pages.
if [ -f “$file”]; then
echo “ This is an ordinary file named: `$file ` “

if [ -d "$file" ]; then
echo “ This is a directory file named: `$file` “ -------------------------------------------------
cd ~

By using our textbook as well as other shell programming resources, we can quickly learn to write our own shell scripts.

NETW240 Project Paper Guidelines
Your Course Project will involve the development of a shell script that automates a UNIX/Linux system administration task.

Each NETW240 student will choose a system administration task that can be automated, and then research various websites, technical publications, and books to learn how to program a workable shell script.

You must write a paper describing your shell script using a project proposal format (see Project Paper Layout and Sections below). Each line making up your shell script must be clearly explained in the same way as if you were the shell interpreter.

You are encouraged to use the Web, scripting books, Linux magazines, UNIX magazines, and other authoritative sources to interpret your script.

The sooner you decide on an administrative task to automate, using a shell script, the sooner you can start on your paper. Therefore, you...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • netw 240 week 7 Essay
  • Essay about It 240
  • Netw 240 course project Essay
  • devry Essay
  • Essay on Netw 240 Lab 1
  • NETW 420 Wk 4 Essay
  • Netw 310 Lab #1 Essay
  • Netw 471 Week 2 Essay

Become a StudyMode Member

Sign Up - It's Free