Answer & Explanation:Supporting
Activity: Terminating a Process
Write a 200-
to 300-word response that discusses the different reasons for terminating a
process and the commands used for this purpose.
Supporting Activity: Program Errors
Write a short
essay in which you discuss the different program errors that are likely to
occur and how they should be handled within scripts.
pos433r1_systems_administration_scripting_log.docx
pos433r1_systems_administration_scripting_log.docx
Unformatted Attachment Preview
Systems Administration Scripting Log
POS/433 Version 1
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.
2. Change the permissions on this new file to add the execute bit for user, group, and owner.
3. Run the following script:
a.
b.
c.
d.
e.
#!/bin/bash
count=1
echo “start of the program”
while [ $count -le 10 ]
do
1) echo “Loop #$count”
2) sleep 10
3) count=$[ count + 1 ]
f. done
g. echo “end of the program
4.
5.
6.
7.
8.
9.
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.
1
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more