c**********e 发帖数: 2007 | 1 I am using SSH Tectia - Terminal to connect to a unix server. I try to run a
process on background. I tried the following 3 commands:
1. sas a.sas &
2. nohup sas a.sas &
3. nohup sas -noterminal a.sas &
"sas a.sas" is to use sas software to run a.sas (file name). If you do not
know SAS, just take "sas a.sas" as something like a.exe.
For any of the 3 commands, whenever I close the SSH Terminal window, my
process is killed. |
c**********e 发帖数: 2007 | 2 The weird thing. If I try to logout or exit:
> logout
3004-064 You must be the login user.
> exit
There are running jobs.
So I can not exit or logout. I have to close the terminal window and my
process is killed. |
g******9 发帖数: 70 | 3 用screen吧
a
【在 c**********e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I am using SSH Tectia - Terminal to connect to a unix server. I try to run a : process on background. I tried the following 3 commands: : 1. sas a.sas & : 2. nohup sas a.sas & : 3. nohup sas -noterminal a.sas & : "sas a.sas" is to use sas software to run a.sas (file name). If you do not : know SAS, just take "sas a.sas" as something like a.exe. : For any of the 3 commands, whenever I close the SSH Terminal window, my : process is killed.
|
l*********s 发帖数: 5409 | |
z**r 发帖数: 17771 | 5 re这个,简单好用
【在 g******9 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 用screen吧 : : a
|
s**********g 发帖数: 139 | 6 Screen is good. or you have to redirect stdout, stderr, stdin:
nohup ./sas a.sas > a.sas.out 2> a.sas.err < /dev/null & |
d****n 发帖数: 1637 | 7 sas a.sas &
disown -h
a
【在 c**********e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I am using SSH Tectia - Terminal to connect to a unix server. I try to run a : process on background. I tried the following 3 commands: : 1. sas a.sas & : 2. nohup sas a.sas & : 3. nohup sas -noterminal a.sas & : "sas a.sas" is to use sas software to run a.sas (file name). If you do not : know SAS, just take "sas a.sas" as something like a.exe. : For any of the 3 commands, whenever I close the SSH Terminal window, my : process is killed.
|