假设通过ssh,telnet连接服务器运行程序(程序运行过程中不需要与终端交互),如果此时网络断了(ssh,telne)
发表于 : 2012-11-26 10:36
假设通过ssh,telnet连接服务器运行程序(程序运行过程中不需要与终端交互),如果此时网络断了(ssh,telnet断开连接),那么程序会怎么样? 程序会被终止吗?
致力于Ubuntu中文推广
http://forum.ubuntu.com.cn/
cxytz01 写了:假设通过ssh,telnet连接服务器运行程序(程序运行过程中不需要与终端交互),如果此时网络断了(ssh,telnet断开连接),那么程序会怎么样? 程序会被终止吗?
NOHUP(1) User Commands NOHUP(1)
NAME
nohup - run a command immune to hangups, with output to a non-tty
SYNOPSIS
nohup COMMAND [ARG]...
nohup OPTION
DESCRIPTION
Run COMMAND, ignoring hangup signals.
--help display this help and exit
--version
output version information and exit
If standard input is a terminal, redirect it from /dev/null. If stan-
dard output is a terminal, append output to ‘nohup.out’ if possible
‘$HOME/nohup.out’ otherwise. If standard error is a terminal, redirect
it to standard output. To save output to FILE, use ‘nohup COMMAND >
FILE’.
NOTE: your shell may have its own version of nohup, which usually
supersedes the version described here. Please refer to your shell’s
documentation for details about the options it supports.