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.
アンパサンドを使用して、bashスクリプトから別のスクリプトを呼び出しています。
OtherScriptThatDoesNotExit & echo "done"
「完了」しているのがわかりますが、元のスクリプトが実行されているのはまだ ps です。なぜこれが考えられるのでしょうか?(注、私はPuppy Linuxで実行しています)
スクリプトは、作成したサブプロセスでまだ待機中です。またはを使用してnohup、実行時間の長いタスクをバックグラウンドに残し、シェルに戻ります。disownscreen
nohup
disown
screen