• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Schedule CF Template - Use Batch File?

Community Beginner ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

Is there a way to execute a CF template through a batch file? I have a small cf template that Im going to schedule to run about every 5 minutes, but I was hoping there was away around using the CF Scheduler. Anyone have any ideas?
TOPICS
Advanced techniques

Views

399

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

In a HTML page, place the following META tag in your HEAD block:
<meta http-equiv="REFRESH" content="300;url=myPage.cfm">
At the end of myPage.cfm, do a CFLOCATION back to this HTML page.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

Thanks jdeline. I want to execute the CF template without opening the web browser though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 10, 2006 Jul 10, 2006

Copy link to clipboard

Copied

LATEST
What OS are you using? You can get wget and curl for Solaris, Linux, OSX, Windows, and others:

wget website
wget http://localhost/mytemplate.cfm -o outputfile.txt

curl website
curl http://localhost/mytemplate.cfm -o outputfile.txt

There are tons of options for each utility. I've found curl to be more flexible, but wget is more reliable.

On any POSIX system, you can use cron and a shell script. On Windows, you'll have to go with AT jobs and a .bat file.

HTH;
&laz;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation