20 likes | 31 Views
POS 433 Week 4 Individual: Systems Administration Scripting Log//tutorfortune.com<br><br>Click on below link to buy<br>https://tutorfortune.com/products/pos-433-week-4-individual-systems-administration-scripting-log<br><br>POS 433 Week 4 Individual: Systems Administration Scripting Log<br> <br><br>Complete the University of Phoenix Material: Systems Administration Scripting Log assignment.<br><br>Submit your assignment using the Assignment Files tab.<br><br> <br><br>Systems Administration Scripting Log<br><br> <br><br>To: <Insert your facilitatoru2019s name<br><br>From: <Insert your name<br><br>Date: <Insert the date (XX/XX/XXXX)<br><br><br>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 weeku2019s assignment. Your log can use the sample format provided, or you can create your own.<br><br><br>In the same folder as last week, create a new file titled week4prog1[name].scr.<br> <br>Change the permissions on this new file to add the execute bit for user, group, and owner.<br> <br>Run the following script:<br> <br>#!/bin/bash<br> <br>count=1<br> <br>echo u201cstart of the programu201d<br> <br>while [ $count -le 10 ]<br><br><br>do<br> u201cLoop #$countu201d<br><br>sleep 10<br> <br>count=$[ count 1 ]<br><br>done<br> <br><br>echo u201cend of the program<br><br><br>Modify the program to add a trap for SIGINT and SIGTERM.<br> <br>Save the script and then run the script in the background.<br> <br>Use the jobs command to display a list of the jobs currently running.<br> <br>Find the process id of the script and kill the job.<br><br>Check to see if you get the trap message.<br> <br>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.<br>POS 433 Week 4 Individual: Systems Administration Scripting Log<br><br>Click on below link to buy<br>https://tutorfortune.com/products/pos-433-week-4-individual-systems-administration-scripting-log<br><br><br>
E N D
POS 433 Week 4 Individual: Systems Administration Scripting Log//tutorfortune.com Click on below link to buy https://tutorfortune.com/products/pos-433-week-4-individual-systems-administration- scripting-log P O S 4 3 3 We e k 4 I n d i v i d u a l : S y s t e ms A d mi n i s t r a t i o n S c r i p t i n g L o g C o mp l e t e t h e U n i v e r s i t y o f P h o e n i x Ma t e r i a l : S y s t e ms A d mi n i s t r a t i o n S c r i p t i n g L o g a s s i g n me n t . S u b mi t y o u r a s s i g n me n t u s i n g t h e A s s i g n me n t F i l e s t a b . S y s t e ms A d mi n i s t r a t i o n S c r i p t i n g L o g T o : < I n s e r t y o u r f a c i l i t a t o r ’ s n a me F r o m: < I n s e r t y o u r n a me D a t e : < I n s e r t t h e d a t e ( X X / X X / X X X X ) A s y o u c o mp l e t e e a c h o f t h e f o l l o w i n g s t e p s , k e e p t r a c k o f w h a t o c c u r s a t e a c h p o i n t ; i n c l u d i n g w h a t y o u t y p e , t h e o u t p u t g i v e n , a n d a n y e r r o r s e x p e r i e n c e d . S u b mi t t h i s i n f o r ma t i o n i n a l o g t o y o u r i n s t r u c t o r f o r t h i s w e e k ’ s a s s i g n me n t . Y o u r l o g c a n u s e t h e s a mp l e f o r ma t p r o v i d e d , o r y o u c a n c r e a t e y o u r o w n . I n t h e s a me f o l d e r a s l a s t w e e k , c r e a t e a n e w fi l e t i t l e d w e e k 4 p r o g 1 [ n a me ] . s c r . C h a n g e t h e p e r mi s s i o n s o n t h i s n e w fi l e t o a d d t h e e x e c u t e b i t f o r u s e r , g r o u p , a n d o w n e r . R u n t h e f o l l o w i n g s c r i p t : # ! / b i n / b a s h c o u n t = 1 e c h o “ s t a r t o f t h e p r o g r a m” w h i l e [ $ c o u n t - l e 1 0 ]
d o “ L o o p # $ c o u n t ” s l e e p 1 0 c o u n t = $ [ c o u n t + 1 ] d o n e e c h o “ e n d o f t h e p r o g r a m Mo d i f y t h e p r o g r a m t o a d d a t r a p f o r S I G I N T a n d S I G T E R M. S a v e t h e s c r i p t a n d t h e n r u n t h e s c r i p t i n t h e b a c k g r o u n d . U s e t h e j o b s c o mma n d t o d i s p l a y a l i s t o f t h e j o b s c u r r e n t l y r u n n i n g . F i n d t h e p r o c e s s i d o f t h e s c r i p t a n d k i l l t h e j o b . C h e c k t o s e e i f y o u g e t t h e t r a p me s s a g e . R u n t h e s c r i p t a g a i n u s i n g t h e a t c o mma n d t o s c h e d u l e t h e j o b i n t h e f u t u r e . Wa i t f o r t h e j o b t o r u n t o ma k e s u r e i t e x e c u t e s . P O S 4 3 3 We e k 4 I n d i v i d u a l : S y s t e ms A d mi n i s t r a t i o n S c r i p t i n g L o g Click on below link to buy https://tutorfortune.com/products/pos-433-week-4-individual-systems-administration- scripting-log