1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Rep Power

    timeout for a perl script - Pls Help!


    i am a novice at perl.. just to check. If i have a cron that executes a perl script, that is it will perl xxx.pl. How can i have a timeout session for the perl script so that if the perl application hangs, the cron will not keep running.

  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    I guess you should have asked this in the perl forum, cuz this is more of a perl coding thing and has been answered there before.
    See Timed Code Execution
    and Incrementing by the hour
    for examples.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo