Using Trap to Exit Bash Scripts Cleanly

Posted by savona on Mar 10, 2019 10:25 PM EDT
Putorius; By Steven Vona
Mail this story
Print this story

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

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.