CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
Auto Refresh of Perl Scripts


Vincent Thong

Jan 19, 2010, 8:43 AM

Post #1 of 3 (4509 views)
Auto Refresh of Perl Scripts Can't Post

I wonder if perl script can re-run in a interval of time by itself.

Do anyone know how to achieve this?

I don't want to refresh the entire webpage, I wish the perl script to run in the interval of 5 minutes.

Thanks in advance.


Jan 19, 2010, 11:05 AM

Post #2 of 3 (4507 views)
Re: [Vincent Thong] Auto Refresh of Perl Scripts [In reply to] Can't Post

A Perl script can re-run by using sleep inside a while loop.

To get a web page to refresh: set the refresh meta (doesn't work on all browsers).


I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".

Vincent Thong

Jan 19, 2010, 11:51 PM

Post #3 of 3 (4490 views)
Re: [shawnhcorey] Auto Refresh of Perl Scripts [In reply to] Can't Post

Is it like

for(; ;) {

#the script to be re-run put here?

#Then this part will be re-run for every 5 seconds?

sleep 5;



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives