dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


Using Trap to Exit Bash Scripts Cleanly

Mar 12, 2019, 07:00 (0 Talkback[s])
(Other stories by Steven Vona)

In this tutorial we explain how to use the trap bash builtin to exit bash scripts cleanly. We explore example of how to clean up temp file, ensure services stay running and close ports.

Complete Story

Related Stories: