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?
-
The answer should be in the logs! What OS is this?George Udosen– George Udosen2017-12-24 12:08:25 +00:00Commented Dec 24, 2017 at 12:08
-
Debian 3.16.43-2 (2017-04-30) x86_64 GNU/LinuxMiguel– Miguel2017-12-24 12:20:04 +00:00Commented Dec 24, 2017 at 12:20
-
Each process is a python script.Miguel– Miguel2017-12-24 12:28:08 +00:00Commented Dec 24, 2017 at 12:28
-
stackoverflow.com/questions/25678978/…dirkt– dirkt2017-12-25 09:07:02 +00:00Commented Dec 25, 2017 at 9:07
Add a comment
|
1 Answer
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/LinuxMiguel– Miguel2017-12-24 12:38:25 +00:00Commented Dec 24, 2017 at 12:38