O processo nohup não está listado usando 'ps'

0

nohup pode ajudar o usuário a manter o processo em execução após o logout.

Mas enquanto faço logout & novamente, o processo python desapareceu.

Antes de sair

Façaloginnovamente

Podemos encontrar o processo python foi interrompido.

PS: o sistema é o Cent OS 7.0.     
por Han Zhengzu 07.09.2016 / 04:24

1 resposta

4

Você deve usar

ps ax | grep ProcessName

porque, de acordo com o Manual :

a

Lift the BSD-style "only yourself" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes with a terminal (tty), or to list all processes when used together with the x option.

x

Lift the BSD-style "must have a tty" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes owned by you (same EUID as ps), or to list all processes when used together with the a option.

    
por 07.09.2016 / 10:07

Tags