Run a command immune to hangups.
Syntax
nohup COMMAND [ARG]... &Example
Enter values below to update the example in real time.
nohup→python3→server→py→long_task→sh→output→echo→PID→# 터미널 종료 후에도 실행 유지
nohup python3 server.py &
# 출력을 파일로 저장
nohup ./long_task.sh > output.log 2>&1 &
echo $! # 마지막 백그라운드 PID 확인