Author Topic: Cron Job didn't work.  (Read 6155 times)

Offline Savannah

Cron Job didn't work.
« on: April 17, 2006, 12:34:57 pm »
I put in that CronJob you posted on the SimpleMachines site for the bank interest, but it didn't seem to work. I used the CronJob tool in my Cpanel. I would try and use the way without a cronjob, but I don't know how to "use a utility that calls this script every day" or make a script or go about finding one that will. If someone could tell me and give me script, that would be helpful!

Offline Daniel15

Re: Cron Job didn't work.
« Reply #1 on: April 17, 2006, 01:42:27 pm »
The cron job tool in cPanel is what most people use, and it works fine. Have you waited at least 1 day? The cron job should run at 12:00AM server time.

If you want to do it the non-cron way, you'll need to find a utility that calls the script. I used to link to , it's fairly easy to use, but in German. I don't understand German, but I was able to find my way around the site.

Alternatively (this is probably better), you can use the Windows task scheduler. Firstly, you'll need to get WGET for Windows, available at , under 'If you don't know which version to get: GET THIS ONE: 1.10.2 complete'). Extract the ZIP file to a folder somewhere (as long as you remember where it is). Then, open the Windows Task Scheduler (this is at Start --> All Programs --> Accessories --> System Tools --> Scheduled Tasks.

Once you're there, add a new task. Browse to the folder where you put WGET, and choose it. Then, go through the wizard (choose to run the task daily) until you get to the end. Once at the end of the wizard, make sure 'Open advanced properties' is ticked, and then click 'Finish'. Once the Advanced Properties box comes up, add the path to the script at the end of the "Run" box. For example, the whole run box might look like:
Code: [Select]
"C:\Documents and Settings\Daniel\My Documents\Cool Programs\wget\wget.exe" http://www.yourforum.tld/path/to/script
After that, it should work properly. Please tell me how you go (I've never tried this before)