Audiopro

Active Member
Feb 15, 2014
37
0
6
cPanel Access Level
Root Administrator
I can set a process timeout for PHP scripts but how do I stop runaway Perl scripts? I have had a few instances where they keep running until I kill them.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

I suggest investigating the reason why the scripts do not end successfully. It's possible the scripts should upgraded or modified to ensure the processes do not hang. Otherwise, you may want to consider using a process resource manager to automatically kill certain processes that run over a set period of time.

Thank you.
 

Audiopro

Active Member
Feb 15, 2014
37
0
6
cPanel Access Level
Root Administrator
Sorry, been away so only just read your reply.
The usual problem is that unlike all other programmers, I don't write perfect code every time and during dev. I occasionally create an endless loop. It only takes one of these for the server to throw it's toys out of the pram. I thought there may be a setting somewhere on the server to limit the time a script can run.
Not having a time limit is useful sometimes but can also come back to bite you.