Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

Cron Jobs

Can I do this with cron jobs?

2:25 am on Sep 18, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 7, 2002
votes: 0


I have a cgi that uses meta-refresh to load new content and write new logs...and I also use iframes that sort of thing...

The problem is that my boss doesnt want to do that manually and would like to be done automatically with a cron job, my question is this...

When I run the cgi it displays an HTML that refreshes itself(in this case he CGI) every 30 seconds. If I run the cgi with a cron job, what would happen? Would it be able to work the same? If not. What are my other options?


2:40 am on Sept 18, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 30, 2001
votes: 0

You can do one of a few things. Some examples are:

make a script to pull the page that gets refreshed. Run it from cron every 30 seconds.

or, make a script to do what the page actually does and run that from cron. (that's probably more reasonable).

Most scripts that you write to pull a web page don't automatically refresh. In fact, you can use 'curl' or 'wget' to pull web pages from the command line. just send the output to /dev/null or something if you don't want it.