Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
必要に応じて pkill できるように、特定のコメントを付けたい任意の bash コマンドを実行しています。
例えば:
sleep 1000 #uniqueHash93581 pkill -f '#uniqueHash93581'
...しかし、 #uniqueHash93581 は解釈されないため、pkill はプロセスを見つけられません。
プロセスを pkill できるように、この一意のハッシュを渡す方法はありますか?