티스토리 뷰
VPN 사용시, 세션이 끊기면 학습도 끊기는 현상 발생.
1. shell script 작성
vi backstart.sh
#!/bin/bash
./darknet detector train testData/obj.data testCfg/test.cfg testWeights/test_last.weights -gpus 0,1 -map -dont_show
2. nohup 실행
nohup ./backstart.sh &
(& : 백그라운드 실행)
nohup ./backstart.sh > /dev/null 2>&1 &
(표준에러를 표준출력으로 리다이렉트 하여 /dev/null에 버리고 백그라운드 실행)
'개발 > Linux' 카테고리의 다른 글
[Linux] - SELinux port 관리 (feat.Nginx) (0) | 2022.06.23 |
---|---|
[Linux] - rm: cannot remove ‘fileName/.nfs0000000000b82de200000008’: Device or resource busy (0) | 2021.12.10 |
[Linux] - 특정 폴더 제외하고 복사하는법 (0) | 2021.12.04 |
[Linux] - ASSERT: "false" in file qasciikey.cpp, line 501 (1) | 2021.11.30 |
[Linux] - 리눅스 폴더 내에 파일 개수 확인 (0) | 2021.11.29 |