LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: The Bash Trap Command (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-the-bash-trap-command-4175658745/)

LXer 08-07-2019 11:42 AM

LXer: The Bash Trap Command
 
Published at LXer:

If you've written any amount of bash code, you've likely come across the trap command. Trap allows you to catch signals and execute code when they occur. Signals are asynchronous notifications that are sent to your script when certain events occur. Most of these notifications are for events that you hope never happen, such as an invalid memory access or a bad system call. However, there are one or two events that*you might reasonably want to deal with...

Read More...


All times are GMT -5. The time now is 05:36 PM.