The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Runaway Perl Scripts

Discussion in 'General Discussion' started by Audiopro, Mar 6, 2014.

  1. Audiopro

    Audiopro Active Member

    Joined:
    Feb 15, 2014
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Audiopro

    Audiopro Active Member

    Joined:
    Feb 15, 2014
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    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.
     
Loading...

Share This Page