Advanced

Using Trap to Exit Bash Scripts Cleanly

Posted by savona on
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

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

This topic does not have any threads posted yet!

You cannot post until you login.