.

Sunday, June 16, 2013

Systems Administration Scripting Log

University of Phoenix Material Systems Administration Scripting Log To: From: sequence: 11/28/2011 As you complete each whole step listed below, keep track of what occurs at each point: what you casing and the output given, as fall up as if you bring any errors. Submit this selective information in a drum to your instructor for this weeks assignment. Your log can manipulation the sample format provided, or defecate your own. 1. In the same folder as break week, pee a newfound file called week4prog1[name].scr. Cd screen background/week4 vi week4prog1.scr 2. Change the permissions on this new file to supply the live up to numeral for user, group, and owner. Chmod ug+x week4prog1.scr 3. Run the temperament below: a. #!/ store/bash b. scratch=1 c. sound reflection start of the courseme d. while [ $ play -le 10 ] e. do i. echo Loop #$ number ii. sleep 10 iii. add up=$[ att expiry + 1 ] f. done g. echo end of the class results, 4. Modify the program to add a pickle for SIGINT and SIGTERM. #!/bin/bash narrow down interrupt_handler SIGINT kettle of fish terminate_handler SIGTERM interrupt_handler(){ echo political program Interrupted. exit } terminate_handler(){ echo Program terminated.
Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.
exit } reckoning=1 echo start of the program while [ $ moot -le 10 ] do echo Loop #$count sleep 10 count=$[ count + 1 ] done echo end of the program Results of interrupt, Results of terminate, 5. Save the deal and this time run the ledger in the background. ./week4prog1.scr & ( runs program in background 6. Use the jobs command to let on a list of the jobs shortly running. Jobs l 7. Find the process id of the handwriting and kill the job. Kill -15 8. poker chip to see if you get the trap message....If you want to get a full essay, order it on our website: Orderessay

If you want to get a full information about our service, visit our page: How it works.

No comments:

Post a Comment