# killする対象のpidを予め変数に入れておきます
hoge_function & pid=$!
:
(処理)
:
kill $pid
wait $pid 2> /dev/null
参考: https://qa.codeflow.site/questions/81520/how-to-suppress-terminated-message-after-killing-in-bash
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 3 years have passed since last update.
# killする対象のpidを予め変数に入れておきます
hoge_function & pid=$!
:
(処理)
:
kill $pid
wait $pid 2> /dev/null
参考: https://qa.codeflow.site/questions/81520/how-to-suppress-terminated-message-after-killing-in-bash
Register as a new user and use Qiita more conveniently
Go to list of users who liked