Search
Duplicate

리눅스에서 nohup 활용하기

with_nohup_shell_template.sh

#!/bin/bash start=`date`; echo "start >>>>>>>>> $start" blablabla......... end=`date`; echo "end >>>>>>>>>>>> $end"
Bash
복사

백그라운드로 동작. (ssh 접속 끊겨도 무방)

nohup sh with_nohup_shell_template.sh & # nohup.out은 with_nohup_shell_template.sh 쉘과 같은 경로에 존재 tail -f nohup.out
Bash
복사