NET 4000 Chapter Notes - Chapter 9.2.8: Nohup, Sighup, Shell Script

40 views2 pages
9 Dec 2017
School
Department
Course
Professor

Document Summary

Normally, users should use the exit function that is coded into nearly all programs to end a running process. For example, the ctrl+c key sequence is used to exit the top program. However, sometimes processes hang and won"t exit properly. In this situation, the following commands can be used to terminate a process: Terminate a process using a process id (pid) number and a specific kill signal. Kill signals can be sent using a term or a numeric value. Sighup, -1 tells the process to shut down and restart. When it restarts, the process will have the same pid it had when the kill signal was sent. Sigint, -2 stops a process as if the ctrl+c key combination had been used. This option is recommended as the first choice when a process will not stop, using its exit function or init script.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents