ssh Remote execution of nohup command does not exit
introduce
Under Linux system, the default user root is used There is a script test in the home directory of the remote target machine SH, executable permission. There is only one command: sleep 10
Execute on local machine
ssh target "nohup ./test.sh &"
As a result, ssh does not exit immediately and waits for test Exit after sh execut ...
Added by overlordhu on Sun, 16 Jan 2022 22:41:42 +0200