Running a Python Script in the Background nohup 사용법, nohup 명령어
nohup 사용법, nohup 명령어
이럴 때 nohup을 사용하면 사용자가 터미널을 종료해도 프로그램이 계속 살아있게 된다. 1. Nohup * 정의 : 리눅스, 유닉스에서 쉘스크립트파일(*.sh)을 데몬형태로 실행시키는 프로그램 * Nohup은 리눅
jasontody.tistory.com
How to run a python program in the background even after closing the terminal?
I am running a python program from a terminal in my Ubuntu machine as, $ python test.py But my whole program will be stopped if I close the terminal, Is there any way of running this python prog...
askubuntu.com
nohup - 터미널을 종료해도 꺼지지 않는 프로세스 실행
/* * http://sosal.kr/ * made by so_Sal */ Putty 원격접속으로 프로그램을 실행할 때, 푸티를 꺼져도 프로세스가 꺼지지 않았으면 할 때가 있다. 노트북 Putty로 원격환경에서 프로그램을 돌리다가 잠
sosal.kr
janakiev.com/blog/python-background/
Running a Python Script in the Background
This is a quick little guide on how to run a Python script in the background in Linux.
janakiev.com
* main.py 를 리눅스에서 백그라운드로 실행시킬때
nohup python3.7 main.py &
* nohup.out 로그 없이 백그라운드에서 실행시킬때
nohup python3.7 main.py 1>/dev/null 2>&1 &
* 현재 main.py 가 실행되고 있는지 확인할 때
ps ax | grep main.py
* 실행되고 있는 main.py 를 죽이고 싶을때
pkill -f main.py
=> 죽이기 전 반드시 동일한 이름으로 돌아가는게 없는지 원하는 파일이 맞는지 체크