POS 433 Week 4 Systems Administration Scripting Log

0 items
POS 433 Week 4 Systems Administration Scripting Log
POS 433 Week 4 Systems Administration Scripting Log
$6.99
Year: 2015
  • Description

POS 433 Week 4 Systems Administration Scripting Log

Instructions

Assignment Preparation: Activities include completing the SkillSoft course, independent student reading, and research.

  • Complete the SkillSoft course, “Working with UNIX Programs.”

 

Assignment: Complete the University of Phoenix Material: Systems Administration Scripting Log located on the student website.

 

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:

 

  1. #!/bin/bash
  2. count=1
  3. echo “start of the program”
  4. while [ $count -le 10 ]
  5. do

 

  • echo “Loop #$count”
  • sleep 10
  • count=$[ count + 1 ]

 

  1. done
  2. echo “end of the program

 

  1. Modify the program to add a trap for SIGINT and SIGTERM.
  2. Save the script and then run the script in the background.
  3. Use the jobs command to display a list of the jobs currently running.
  4. Find the process id of the script and kill the job.
  5. Check to see if you get the trap message.
  6. 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.