in reply to using perl for a cron job

Do you want to run it continually, or periodically?

For the latter, cron is what you want. See man crontab for how to set it up. You can give the crontab more or less the same command line you would use in a terminal session.

For continuous running, your script needs to be written to do that. One way is with Proc::Daemon, and an endless loop.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: using perl for a cron job
by Anonymous Monk on May 24, 2006 at 22:58 UTC
    I'd like to run the script once a day and self-kill it if it's possible. It just loads pages and pages and pages nonstop and it literally takes about 3 days to finish, but I'd restart it once a day.

    It doesn't use any files outside of the perl script itself, it's a simple little script using a while loop that takes about 3 days to finish.