Find out why a running process dies
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a few processes that for some reason end when they shouldn't. How can I know from the process ID if it was killed automatically by the kernel or even by some other user?
python process-management
add a comment |Â
up vote
0
down vote
favorite
I have a few processes that for some reason end when they shouldn't. How can I know from the process ID if it was killed automatically by the kernel or even by some other user?
python process-management
The answer should be in the logs! What OS is this?
â George Udosen
Dec 24 '17 at 12:08
Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:20
Each process is a python script.
â Miguel
Dec 24 '17 at 12:28
stackoverflow.com/questions/25678978/â¦
â dirkt
Dec 25 '17 at 9:07
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a few processes that for some reason end when they shouldn't. How can I know from the process ID if it was killed automatically by the kernel or even by some other user?
python process-management
I have a few processes that for some reason end when they shouldn't. How can I know from the process ID if it was killed automatically by the kernel or even by some other user?
python process-management
edited Dec 25 '17 at 9:07
dirkt
14.1k2931
14.1k2931
asked Dec 24 '17 at 12:01
Miguel
101
101
The answer should be in the logs! What OS is this?
â George Udosen
Dec 24 '17 at 12:08
Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:20
Each process is a python script.
â Miguel
Dec 24 '17 at 12:28
stackoverflow.com/questions/25678978/â¦
â dirkt
Dec 25 '17 at 9:07
add a comment |Â
The answer should be in the logs! What OS is this?
â George Udosen
Dec 24 '17 at 12:08
Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:20
Each process is a python script.
â Miguel
Dec 24 '17 at 12:28
stackoverflow.com/questions/25678978/â¦
â dirkt
Dec 25 '17 at 9:07
The answer should be in the logs! What OS is this?
â George Udosen
Dec 24 '17 at 12:08
The answer should be in the logs! What OS is this?
â George Udosen
Dec 24 '17 at 12:08
Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:20
Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:20
Each process is a python script.
â Miguel
Dec 24 '17 at 12:28
Each process is a python script.
â Miguel
Dec 24 '17 at 12:28
stackoverflow.com/questions/25678978/â¦
â dirkt
Dec 25 '17 at 9:07
stackoverflow.com/questions/25678978/â¦
â dirkt
Dec 25 '17 at 9:07
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
you should trace your process by Strace
Commande :
strace -p <PID> -o <OUTPUT_FILE>
or
sudo strace -p <PID> -o <OUTPUT_FILE>
in OUTPUT_FILE you will find all Informations about the execution of your Python Script and you can have some information about what causes their ends.
My OS don't have that command. Is there any alternative? I'm using Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:38
1
Sorry, I end up installing it. Ok, thank you.
â Miguel
Dec 24 '17 at 12:40
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
you should trace your process by Strace
Commande :
strace -p <PID> -o <OUTPUT_FILE>
or
sudo strace -p <PID> -o <OUTPUT_FILE>
in OUTPUT_FILE you will find all Informations about the execution of your Python Script and you can have some information about what causes their ends.
My OS don't have that command. Is there any alternative? I'm using Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:38
1
Sorry, I end up installing it. Ok, thank you.
â Miguel
Dec 24 '17 at 12:40
add a comment |Â
up vote
2
down vote
you should trace your process by Strace
Commande :
strace -p <PID> -o <OUTPUT_FILE>
or
sudo strace -p <PID> -o <OUTPUT_FILE>
in OUTPUT_FILE you will find all Informations about the execution of your Python Script and you can have some information about what causes their ends.
My OS don't have that command. Is there any alternative? I'm using Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:38
1
Sorry, I end up installing it. Ok, thank you.
â Miguel
Dec 24 '17 at 12:40
add a comment |Â
up vote
2
down vote
up vote
2
down vote
you should trace your process by Strace
Commande :
strace -p <PID> -o <OUTPUT_FILE>
or
sudo strace -p <PID> -o <OUTPUT_FILE>
in OUTPUT_FILE you will find all Informations about the execution of your Python Script and you can have some information about what causes their ends.
you should trace your process by Strace
Commande :
strace -p <PID> -o <OUTPUT_FILE>
or
sudo strace -p <PID> -o <OUTPUT_FILE>
in OUTPUT_FILE you will find all Informations about the execution of your Python Script and you can have some information about what causes their ends.
answered Dec 24 '17 at 12:34
Hamza Jabbour
41117
41117
My OS don't have that command. Is there any alternative? I'm using Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:38
1
Sorry, I end up installing it. Ok, thank you.
â Miguel
Dec 24 '17 at 12:40
add a comment |Â
My OS don't have that command. Is there any alternative? I'm using Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:38
1
Sorry, I end up installing it. Ok, thank you.
â Miguel
Dec 24 '17 at 12:40
My OS don't have that command. Is there any alternative? I'm using Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:38
My OS don't have that command. Is there any alternative? I'm using Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:38
1
1
Sorry, I end up installing it. Ok, thank you.
â Miguel
Dec 24 '17 at 12:40
Sorry, I end up installing it. Ok, thank you.
â Miguel
Dec 24 '17 at 12:40
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412799%2ffind-out-why-a-running-process-dies%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
The answer should be in the logs! What OS is this?
â George Udosen
Dec 24 '17 at 12:08
Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
â Miguel
Dec 24 '17 at 12:20
Each process is a python script.
â Miguel
Dec 24 '17 at 12:28
stackoverflow.com/questions/25678978/â¦
â dirkt
Dec 25 '17 at 9:07