Use the Bash trap Statement to Clean Up Temporary Files

Posted by Scott_Ruecker on May 6, 2009 1:51 AM EDT
Linux Journal; By Mitch Frazier
Mail this story
Print this story

The trap statement in bash causes your script to execute one or more commands when a signal is received. One of the useful things you can use this for is to clean up temporary files when your script exits.

Full Story

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

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.