Submitted by: Submitted by hypnotic777
Views: 1326
Words: 909
Pages: 4
Category: Science and Technology
Date Submitted: 08/06/2012 04:10 PM
|Apollo Group, Inc. |
|Week 4 Assignment |
|Systems Administration scripting log |
| |
University of Phoenix Material
Systems Administration Scripting Log
To:
From:
Date:
As you complete each of the following steps, keep track of what occurs at each point, including what you type, the output given, and any errors experienced. Submit this information in a log to your instructor for this week’s assignment. Your log can use the sample format provided, or you can create your own.
1. In the same folder as last week, create a new file titled week4prog1[name].scr.
I used the command line to access the directory through cd (name of dir) then created a file through the command: vi week4prg1jwilson. Then I saved the file by using ESC and :x and hit enter to provide the next questions answer.
2. Change the permissions on this new file to add the execute bit for user, group, and owner.
Once I saved the file to the directory I used the command line to add the execute bit for the user, group and owner through this command:
chmod ug+x week4prg1jwilson
3. Run the following script:
a. #!/bin/bash
b. count=1
c. echo "start of the program"
d. while [ $count -le 10 ]
e. do
1) echo "Loop #$count"
2) sleep 10
3) count=$[ count + 1 ]
f. done
g. echo "end of the program
This started a loop that would not end giving me an error for each output line. Here is the file:
[pic]...