1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Rep Power

    run a shell without cron possible?

    I have a shell I would like to execute every 5 minutes or so. But, my ISP does not support cron. Is it possible to run a script every so often without using cron?
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    You could use a perl script to do it then and leave it running in the background.

    DISCLAIMER: Most sysadmins hate long running processes and will probably kill one, if they don't know what it does.
    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Rep Power
    while [0 ]; do <script_name_here>; sleep 300; done &

    do not forget the last "&" as it will put your loop in the background.

IMN logo majestic logo threadwatch logo seochat tools logo