homepage Welcome to WebmasterWorld Guest from 184.72.72.182
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Cron Jobs
Can I do this with cron jobs?
kidd




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

Hello...

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?

Thanks

 

amoore




msg:907507
 2:40 am on Sep 18, 2002 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved