Solved

Schedule is not working. Any idea?

Posted on 2000-03-22
8
173 Views
Last Modified: 2013-12-24
I have the following schedule script but this is not working properly. Though the MailThis.cfm template is working fine independly. Moreover, when I execute the schedule script manually it does work properly. It sends an email at the address. Can anybody tell me what's wrong I am doing?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
      <title>Untitled</title>
</head>

<body>


<cfschedule action="UPDATE"
task="MailThis"  
operation="HTTPRequest"
url="http://127.0.0.1/training/MailThis.cfm"
startdate="3/22/00"
starttime="1:25 PM"
interval="60"
requesttimeout="600"
resolveurl="Yes"
publish="No">

</body>
</html>

~~~~~~~
MailThis.cfm
~~~~~~~

<cfmail to="rkmails@yahoo.com" subject="Test Message #Now()#" from="rkchopra@nettaxi.com" server="ndf.vsnl.net.in" port="25">

This is a test message.

</cfmail>
~~~~~~~~~~~

Regards,
Rajesh
0
Comment
Question by:rkchopra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 2

Expert Comment

by:dlewis9
ID: 2645242
Have you looked at the logs to see if anything is happening?  schedule.log should show scheduled events starting and finishing..and application.log should show if there were any errors.

Also, my 4.0 reference manual states (probably incorrectly) that you should specify the start time in seconds. (??)  You might try full miltary time instead of the AM/PM time..(13:25:00) i find that to work better when manually scheduling an event through the administrator..

just some thoughts..
0
 
LVL 5

Expert Comment

by:nathans
ID: 2645783
I agree I would go to Schedule it in the administrator menu.
0
 

Author Comment

by:rkchopra
ID: 2647701
After running this scheduling template, it creates a shedule in the Admin Sheduling menu also. But I could not find anything wrong with that.

In the meantime, i have also one more problem, it is not creating any log file in c:\cfusion\logs (as stated by you and as well as Cold Fusion Documentation). Also, it is not creating any other log for mailing log. Though I have selected "Save the content of all email messages to a log file." option in the mail logging menu. But it is updating server log/Application.log and webserver.log properly.

Any idea?
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 2

Expert Comment

by:dlewis9
ID: 2650529
The mail messages should be stored in c:\cfusion\mail\log\messages.log

No scheduler.log file?  You should have entries like this for each time a scheduled job runs:

"Information","TID=304","03/23/00","12:55:43","Scheduled action MailThis, template http://develop.uniden.com/dev/MailThis.cfm submission initiated."
"Information","TID=304","03/23/00","12:55:43","Scheduled action MailThis, template http://develop.uniden.com/dev/MailThis.cfm submitted successfully."

I tried your code on my system and it worked great..

Has the server been rebooted lately?  You might try using a different task name and see if that does anything..I know when you make a change to a scheduled job, you have to restart the services for that to take effect..

What operating system/version of CF are you running?  Are the CF services running under the system account?

Did the scheduler work correctly when you keyed in the task manually?

Just trying to come up with some ideas since the code is fine..harder to troubleshoot the server..
0
 

Author Comment

by:rkchopra
ID: 2653891
Thanks for your efforts. I could find the log files into the your mentioned directory. It has record of all the messages has sent by me using Cold Fusion Server. I still there is not Scheduler.log file.

I am using Windows 98/ Personal Web Server / Cold Fusion Server 4.0 (enterprise edition). Is there any problem with CF Server regarding y2k? I went to allaire.com and tried to find out the answer... they recommend to upgrade the server to 4.01. I am downloading the server and it may take some time 'cause it is 35 MB. By the way, which versions of the software/server you are using. As I am testing these template on my local server, there is not a prob. of rebooting the system. I did that also but all in vain.

I verified the mail server using Admin of Cold Fusion server also and it is working properly. Did try to rename the shedule, no success. It did work when I run it Mannually.

Any other suggestion?
0
 

Accepted Solution

by:
Bill_James earned 100 total points
ID: 2657817
You will need CF Server 4.01 update.  One of the Y2K bugs is the scheduler date storage. The scheduler does not work properly without the update.  The update sets it to a 4 digit date.  If you look in your logs you will see that the date says 03/02/100 or 03/02/00.  after the update your scheduled tasks will work and the dates will be 4 digit.
0
 

Author Comment

by:rkchopra
ID: 2659520
Thank you very much for your help. I have started to download the CF 4.01 version. Hope this will work properly after this.

Thanks once again and i am giving you the points also.

Rajesh
0
 
LVL 2

Expert Comment

by:dlewis9
ID: 2662349
Yeah -- I think all my servers are at least on 4.01..didn't know it was a y2k issue..!
0

Featured Post

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question