lecture19_inf201_fall2010

lecture19_inf201_fall2010 - IINF201 IINF201 (Fall 2009)...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
IINF201 (Fall 2009) Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Lecture From: Sairam Chinnam, INF 523 Fall 2006 Original Source: Afzal, Amir, (2002), UNIX Unbounded:ABeginning Approach, 4th Edition, Prentice Hall.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
12/03/06 :: Unix and Networking :: Class 9 Sairam Chinnam Introduction to Shell scripting • Shell script – a text file that contains a series of commands, a command language • Why use shell script • Easy to debug and modify, but take longer to run than compiled language • When you run a shell script, each command in the script is passed to shell to execute, one at a time • Bourne shell (sh) is most often used for shell scripting
Background image of page 2
12/03/06 :: Unix and Networking :: Class 9 Sairam Chinnam Shell Programming Basics Create the shell scripts – use a text editor (vi or emacs or pico) or cat command Display scripts – cat or more command How to run a shell script • Invoking script with shell (sh, bsh, csh) $ sh example1 • Executing script as a command itself Make script executable – using chmod command $ chmod u+x example1 $ example1
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
12/03/06 :: Unix and Networking :: Class 9 Sairam Chinnam
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 02/09/2011.

Page1 / 12

lecture19_inf201_fall2010 - IINF201 IINF201 (Fall 2009)...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online