Refer a friend and get % off! They'll get % off too.

POS 433 Week 4 Individual: Systems Administration Scripting Log

POS 433 Week 4 Individual: Systems Administration Scripting Log
 

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

Submit your assignment using the Assignment Files tab.

 

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.

 

 

 

 

In the same folder as last week, create a new file titled week4prog1[name].scr.
 

 

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

 

Run the following script:
 

 

 

 

 

 

 

#!/bin/bash
 

 

count=1
 

 

echo “start of the program”
 

 

while [ $count -le 10 ]
 

 

do
 

 

 

 

 

 

 

echo “Loop #$count”
 

 

sleep 10
 

 

count=$[ count + 1 ]
 

 

 

 

 

 

 

done
 

 

echo “end of the program
 

 

 

 

 

 

 

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

 

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

 

Use the jobs command to display a list of the jobs currently running.
 

 

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

 

Check to see if you get the trap message.
 

 

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.
 

 

 

You will get a ZIP (10MB) file

$ 6.00

$ 6.00

Buy Now

Discount has been applied.

Added to cart
or
Add to Cart
Adding ...