How to modify scripts behavior on signals using bash traps

Posted by linuxer on Oct 25, 2017 8:54 AM EDT
linuxconfig.org; By Egidio Docile
Mail this story
Print this story

When writing scripts that are meant to run for a considerable time, it's very important to increase their robustness by making them able to react to system signals, executing specific actions when some of them are received. We can accomplish this task by using the bash trap builtin.

Full Story

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

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.