Skip to main content
September 6, 2010
Question

Any alternative beside CF Administrator scheduled task?

  • September 6, 2010
  • 1 reply
  • 1938 views

My scheduled tasks unable to run on CF9 but when I browse in IE it's working fine.

I believe CF9 scheduled task very sensitive on the code as I tried to remarks on some coding its working fine.

When I removed the remarks it unable to process.

Any help on this? Is there any other way to run a schedule without using CF Administrator?

Best regards,
Eric

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    September 6, 2010

    Eric, is there any chance that the page you're running successfully in IE works because you were prompted at some point for a web server username/password? The browser will cache that for subsequent requests. If the page requires such security, you must specify it in the scheduled task definition.

    There is also available logging of scheduled tasks (on the Logging Settings page in the CF Admin), which creates a new log in the \logs directory (also accessible from the CF Admin Log Files page), which may give you more insight into what's not working.

    Finally, yes, you could always an alternative to CF's scheduled tasks, in the Windows scheduled task feature (available in all versions of Windows). The problem is how to execute a CFML page. There used to be a cfml.exe program in the \bin (prior to CF 6) that allowed you to execute CFML pages from the command line. That's no longer offered.

    But you could call the pages using a command-line equivalent of a browser. One such solution is wget. I did a blog entry on this several years ago when I worked with BlueDragon, but the concept applies just as well to CF:

    http://bluedragon.blog-city.com/executing_cfml_from_the_command_line_or_where_did_cfmlexe_go.htm

    Others may have still other suggestions.

    But really, see first if you can in fact get it to work as a CF scheduled task. There's usually an explanation and a solution. Hope that helps.

    /charlie

    Providing CF troubleshooting services at carehart.org/consulting

    charlie@carehart.org

    /Charlie (troubleshooter, carehart. org)
    September 6, 2010

    Hi Charlie,

    Yes, I did insert username/password on the scheduled task.

    The funny things is working fine after the server fresh restart and 2-3 hours later thing doesnt work anymore.

    I am suspecting server out of memory and most of the scheduled task are for SFTP.

    Thanks again.

    Charlie Arehart
    Community Expert
    Community Expert
    September 6, 2010

    Again, enable the scheduled task logging to see if it offers any more info.

    /charlie

    /Charlie (troubleshooter, carehart. org)