BigAdmin System Administration Portal
Resource Description Page

BigAdmin Resource Description

Title: How to Leave scripts running when you logoff, and exit nicely when sent a SIGTERM signal
Section: Tech Tips
Category: System Management
URL: http://wikis.sun.com/display/BigAdmin/How+to+Leave+scripts+running+when+you+logoff%2C+and+exit+nicely+when+sent+a+SIGTERM+signal


Description For 'How to Leave scripts running when you logoff, and exit nicely when sent a SIGTERM signal '
How to Leave scripts running when you logoff, and exit nicely when sent a SIGTERM signal
URL: http://wikis.sun.com/display/BigAdmin/How+to+Leave...

Description: Tech tip about the trap command. Mainly to highlight its usefulness as opposed to using the nohup command, cron commad, at command, or other ways to have a script picked up by the init process as a parent.

Tip also shows the usefulness of trapping the SIGTERM, 15, signal and running commands just before a script exits.

Contact: N/A

Submitter: Ross Moffatt

 
 


BigAdmin