スクリプトの実行を続けながら、バックグラウンドで無限ループを実行するにはどうすればよいですか?
「スクリプト」の例:
while true; do something_in_the_background; done
do_something_while_the_loop_goes_on_in_the_background
for 1 2 3; do somethingelse; done
exit 0
これ(に注意&)は、しばらくしてシステム全体をクラッシュさせるようです:
while true; do
something_in_the_background &
done
do_something_while_the_loop_goes_on_in_the_background
for 1 2 3; do somethingelse; done
exit 0
多くのプロセスを作成していることに驚かないでください。
—
エドはヒール
フォーク爆弾の道順を尋ねていますか?
—
バージガル
バックグラウンドで無限ループを実行する背後にある意図を教えてください。
—
ニューロン