Matt - thanks for the quick response.

I edited the bluedragon.xml file as you suggested. The 'publish'
option was already set to 'true' by the administrator form. Here is
the seqment of code from the file for the scheduled task. The only
thing changed in this post are the username, password and domain name.
The directory paths are exactly as in my bluedragon.xml file.

<cfschedule>
    <task name="report1">
      <porttouse>-1</porttouse>
      <tasktype>DAILY</tasktype>
      <password>mypassword</password>
      <resolvelinks>true</resolvelinks>
      <username>user</username>
      <starttime>00:12:00</starttime>
      <requesttimeout>30</requesttimeout>
      <proxyport>80</proxyport>
      <proxypassword></proxypassword>
      <publishpath>$/home/webs/www.example.com/_log/</publishpath>
      <enddate>01/01/2050</enddate>
      <urltouse>http://www.example.com/_admin/report1.cfm</urltouse>
      <proxyusername></proxyusername>
      <publish>true</publish>
      <proxyserver></proxyserver>
      <publishfile>report1.htm</publishfile>
      <interval>-1</interval>
      <startdate>11/01/2009</startdate>
      <endtime></endtime>
      <name>report1</name>
    </task>
</cfschedule>

If I run the task from the sheduled task page (by clicking the 'play'
icon), the task will run successfully, but I don't get a log file.
I've double-checked the path to the publish folder, and the ower/
permissions are correct as well.

Any ideas?


Also, a couple of other minor bugs in the administrator schedule form:
1) if you enter a time to run in the first hour after midnight, such
as 00:05, after you save the task and then edit it again, the first
leading zero is truncated from the time, as in 0:05. If you try to
save the task again, you get a warning dialog that the time is in the
wrong format. You can edit it back to 00:05, but next time in, it is
truncated again. BTW, the time looks correct in the xml file (00:05),
it is just the form display that is wrong.
2) The requesttimeout value seems to be ignored. It always reverts to
30 when you save a task.

Thanks for your help,
Roy Terry



On Nov 7, 10:04 am, Matthew Woodward <[email protected]> wrote:
> navarre wrote:
> > I am having a problem creating log files for scheduled jobs using the
> > Administrator's Scheduled Tasks page.
>
> That appears to be a bug in the administrator. I created a task and
> publish is set to "false" in the bluedragon.xml file. I'll look into it
> this weekend.
>
> In the  mean time you can add the task to the XML file manually.
> Probably the easiest thing to do is create the task in the
> administrator, then open up WEB-INF/bluedragon.xml in a text editor.
> Find the scheduled task that was entered by the administrator (it will
> be in a <cfschedule> node), and then set publish to true and enter your
> publish path and publish file.
>
> Sorry about the bug. I'll let you know as soon as it's resolved. Let me
> know if you need assistance with the getting the task changed in the XML.
>
> Matt
>
> --
> Matthew Woodward
> [email protected]http://mpwoodward.posterous.com
> identi.ca/Twitter: @mpwoodward
>
> Please do not send me proprietary file formats such as Word, PowerPoint, etc. 
> as attachments.http://www.gnu.org/philosophy/no-word-attachments.html

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to