0

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?

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.