たとえば、バックグラウンドで時計を実行しながら、バックグラウンドでpython -mHTTPSimpleServerを実行したい
python -m HTTPSimpleServer; watch -n(私の素晴らしいテストコマンド)
1つのコマンドから両方を並行して生成するにはどうすればよいですか?
python -m HTTPSimpleServer & # Your Python process will now be in the background
serverpid="$!" # Capture its PID so that you can kill it later.
watch -n /path/to/AwesomeTestCommand Arg1 Arg2
# Some time later...
kill "$serverpid" # Make your Python process go away
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加