后台运行程序
(1)默认是写到nohup.out中
nohup command &
(2)如果将结果写到指定的文件
nohup command > command.out 2>&1 &
容易出错的地方,将最后的&写到了command后面
nohup command & > command.out 2>&1
发布时间: 2012-08-28 12:37:01 作者: rapoo
后台运行程序
(1)默认是写到nohup.out中
nohup command &
(2)如果将结果写到指定的文件
nohup command > command.out 2>&1 &
容易出错的地方,将最后的&写到了command后面
nohup command & > command.out 2>&1