I have a perl script that is supposed to run indefinitely. It's being killed... how do I determine who or what kills it?

Posted by John O on Server Fault See other posts from Server Fault or by John O
Published on 2011-02-08T18:11:15Z Indexed on 2011/02/08 23:27 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

I run the perl script in screen (I can log in and check debug output). Nothing in the logic of the script should be capable of killing it quite this dead.

I'm one of only two people with access to the server, and the other guy swears that it isn't him (and we both have quite a bit of money riding on it continuing to run without a hitch). I have no reason to believe that some hacker has managed to get a shell or anything like that. I have very little reason to suspect the admins of the host operation (bandwidth/cpu-wise, this script is pretty lightweight).

Screen continues to run, but at the end of the output of the perl script I see "Killed" and it has dropped back to a prompt. How do I go about testing what is whacking the damn thing?

I've checked crontab, nothing in there that would kill random/non-random processes. Nothing in any of the log files gives any hint. It will run from 2 to 8 hours, it would seem (and on my mac at home, it will run well over 24 hours without a problem). The server is running Ubuntu version something or other, I can look that up if it matters.

© Server Fault or respective owner

Related posts about linux

Related posts about perl