Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thank you so much! I added the rm before every exit code and this solved the problem.
    – Philip.J
    Commented Jun 13, 2014 at 20:14
  • 1
    Ok, cool. But you should realty only delete it in execution paths where it is created. And the advantage of using a trap is that it will also work in case of an external exit (ctrl+c, or if your termibal disconnects) Commented Jun 14, 2014 at 14:03