Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

cronjob to run CGI every 30 minutes?

by NodeReaper (Curate)
on Jul 08, 2002 at 12:45 UTC ( #180155=perlquestion: print w/replies, xml ) Need Help??

NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

Replies are listed 'Best First'.
Re: cronjob
by Abigail-II (Bishop) on Jul 08, 2002 at 13:17 UTC
    On Unix, or a Unix like OS, you'd use "cron". For something produced in Redmond, use "at". For details, read the manual page. This is not a Perl question, you'd use the same answer if you have a program written in Ada or Eifel, and you wanted that to be run every 30 minutes.

    Abigail

Re: cronjob
by mikeirw (Pilgrim) on Jul 08, 2002 at 13:17 UTC

    Will the script be executing on an Unix machine? If so, check out 'man cron' and 'man crontab'. If you don't have access to the man pages, you can read them here:

    man cron
    man crontab

    Maybe someone else here can provide you with an answer if the script will be running on a Windows machine, or some other OS.

Re: cronjob
by Aristotle (Chancellor) on Jul 08, 2002 at 13:31 UTC
    A CGI script probably can't be trivially scheduled from cron. In that case you'll need to schedule a web fetch using wget, lwp-request or something else, maybe a handrolled script - whichever fits your bill. YMMV tho.

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://180155]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2023-06-01 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?