1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Limit total cpu time of perl script

Discussion in 'Programming' started by popowich, Apr 4, 2009.

  1. #1
    Hello,

    What is the best way to limit the cpu time a perl script may run for? I have a script that I would like to limit to no more than 1 hour of cpu time. At 1 hour it is ok for it to be silently killed off. I do not want this to be a user or system-wide limit. Thanks you in advance for the best way to create this limit within the script itself.

    -Raymond
     
    popowich, Apr 4, 2009 IP