I think the easiest thing to do, is ask your hosting company send you logs
or have a look at the logs for the time the schedule is supposed to run.
This would be the first point of call, so that you can establish if the
code is throwing an exception.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: 
http://plus.google.com/113032480415921517411<http://plus.google.com/108193156965451149543>


On Sun, Oct 21, 2012 at 5:36 AM, John Barrett <[email protected]> wrote:

>
> I am having been trying to get a schedule task working in Linux for a few
> days with no luck. It is on a linux shared hosting, and the provider says
> that the schedule task has been set up, but it does not send the e-mail. I
> am also trying to write an output file(a time stamp would be nice too!) to
> see if the schedule task ran or not.
> Can somebody look at my code, and let me know if I am doing something
> wrong.
>
> Please not, I am using my local version, which does work on the Mac, the
> remote version is the same with different URLs
> <!---scheduler.cfm--->
>
> <cfschedule action="update"
>                         url="http://localhost/schedule/date.cfm";
>                         task="Date"
>             operation="HTTPRequest"
>             interval="Daily"
>             startDate="10/19/2012"
>                         startTime = "12:00 PM"
>                         file="scheduletasklog">
>
> <cflog log="scheduletasklog" text="It Ran!"
> file="/Library/WebServer/Documents/schedule/output.txt" >
>
>
>
> The Date Task task has been updated!
>
> <!---date--->
> <cfset tipdate = #CreateODBCDate(now())#>
>
> <cfquery name="GetMembers">
>   SELECT *
>   FROM email_alerts
> </cfquery>
>
>
> <cfloop query="GetMembers">
>   <cfmail To="#GetMembers.email_address#"
>     From="my e-mail address"
>     Subject="Today's Date"
>     type="HTML">
>
>          <html>
>                  <head>
>                  </head>
>                  <body>
>
>                         <cfoutput>
>                                 Hello #GetMembers.name#<p>
>                                 Today's date is <em>#DateFormat(tipdate,
> "mmmm d, yyyy")#</em><br />
>                         </cfoutput>
>
>                  </body>
>      </html>
>   </cfmail>
> </cfloop>
>
> Email Sent!
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5946
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to