Pos/420 week 4 individual: systems administration scripting log

Resource: University of Phoenix Material: Systems Administration Scripting Log

Complete the University of Phoenix Material: Systems Administration Scripting Log.

 

University of Phoenix Material

 

Systems Administration Scripting Log

 

To: <Insert your facilitator’s name>

From: <Insert your name>

Date: <Insert the date (XX/XX/XXXX)>

 

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.

2.     Change the permissions on this new file to add the execute bit for user, group, and owner.

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

 

4.     Modify the program to add a trap for SIGINT and SIGTERM.

5.     Save the script and then run the script in the background.

6.     Use the jobs commandto display a list of the jobs currently running.

7.     Find the process id of the script and kill the job.

8.     Check to see if you get the trap message.

9.     Run the script again using the at command to schedule the job in the future. Wait for the job to run to make sure it executes.

 FOLLOWING IS THE LIST OF COMPLETE WEEKLY ASSIGNMENTS. PLEASE FOLLOW/CLICK THE DESIRED LINK

POS/420 Week 1 Individual: UNIX ® and Linux ® Comparison Matrix

https://www.homeworkmarket.com/content/pos420-week-1-individual-unix-%25C2%25AE-and-linux-%25C2%25AE-comparison-matrix

 

POS/420 Week 2 Learning Team: UNIX ® , Linux ® , and Windows Server ® Critique and Presentation Preparation Part I

https://www.homeworkmarket.com/content/pos420-week-2-learning-team-unix-%25C2%25AE-linux-%25C2%25AE-and-windows-server-%25C2%25AE-critique-and-presentation-pr

 

POS/420 Week 2 Individual: File Processing Commands Worksheet

https://www.homeworkmarket.com/content/pos420-week-2-individual-file-processing-commands-worksheet-0

 

POS/420 Week 2 Individual: Linux ® Directory Log

https://www.homeworkmarket.com/content/pos420-week-2-individual-linux-%25C2%25AE-directory-log

 

POS/420 Week 3 Learning Team: UNIX ® , Linux ® , and Windows Server ® Critique and Presentation Preparation Part II

https://www.homeworkmarket.com/content/pos420-week-3-learning-team-unix-%25C2%25AE-linux-%25C2%25AE-and-windows-server-%25C2%25AE-critique-and-presentation-pr

 

POS/420 Week 3 Individual: Linux ® Script Worksheet

https://www.homeworkmarket.com/content/pos420-week-3-individual-linux-%25C2%25AE-script-worksheet

 

POS/420 Week 4 Learning Team: UNIX ® , Linux ® , and Windows Server ® Critique and Presentation Preparation Part III

https://www.homeworkmarket.com/content/pos420-week-4-learning-team-unix-%25C2%25AE-linux-%25C2%25AE-and-windows-server-%25C2%25AE-critique-and-presentation-pr

 

POS/420 Week 4 Individual: Systems Administration Scripting Log

https://www.homeworkmarket.com/content/pos420-week-4-individual-systems-administration-scripting-log

 

POS/420 Week 5 Learning Team: UNIX ® , Linux ® , and Windows Server ® Critique

https://www.homeworkmarket.com/content/pos420-week-5-learning-team-unix-%25C2%25AE-linux-%25C2%25AE-and-windows-server-%25C2%25AE-critique

 

0 replies