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?

4
  • The answer should be in the logs! What OS is this? Commented Dec 24, 2017 at 12:08
  • Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux Commented Dec 24, 2017 at 12:20
  • Each process is a python script. Commented Dec 24, 2017 at 12:28
  • stackoverflow.com/questions/25678978/… Commented Dec 25, 2017 at 9:07

1 Answer 1

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.

1
  • 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 Commented Dec 24, 2017 at 12:38

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.