地方エンジニアの学習日記

興味ある技術の雑なメモだったりを書いてくブログ。たまに日記とガジェット紹介。

2020-06-07から1日間の記事一覧

bashのtarpで疑似シグナルを扱うハンドラ

bashでシグナルハンドラを行い際に便利なコマンドtrapだがSIG*以外にも擬似シグナルをハンドリングすることが可能らしい。 If a sigspec is ERR, the command arg is executed whenever a simple command has a non-zero exit status, subject to the follow…