Closed Thread Icon

Preserved Topic: Scheduling scripts with WinXP and Apache... Pages that link to <a href="https://ozoneasylum.com/backlink?for=21244" title="Pages that link to Preserved Topic: Scheduling scripts with WinXP and Apache..." rel="nofollow" >Preserved Topic: Scheduling scripts with WinXP and Apache...\

 
Author Thread
Thumper
Paranoid (IV) Inmate

From: Deeetroit, MI. USA
Insane since: Mar 2002

posted posted 04-18-2003 19:56

Can anyone enlighten me on how to perform a Windows-style Cron Job (Scheduled task) with Apache server installed? For example, I've tried to have the script on my localhost server "maillist.php" run every night. For some reason, I get a "Could not start" error in Scheduler. Task Scheduler is running as a service. Help!

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-18-2003 20:45

Alrighty then first check out this tute on using the php command line interface. This way you should be able to skip having to use apache to hit a page.

Make sure you are using the correctly configured version of php.

Now once you have this running from the command line what you can do is save the text of the command to a file named something.bat

Clicking on the .bat file should run the script the same as typing in the command

Now save the .bat file somewhere and run that via scheduler.



.:[ Never resist a perfect moment ]:.

Thumper
Paranoid (IV) Inmate

From: Deeetroit, MI. USA
Insane since: Mar 2002

posted posted 04-18-2003 21:35

Thanks very much for the direction bitdamaged. Alternatively, I just followed the directions at the bottom of that tute to associate .php extensions with PHP interpreter. Boy, I learn something everyday here.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 04-28-2003 16:56

Windows has an AT function that is really similar to cron, sortof, in a windows fucks everything up kind of way.


Me

« BackwardsOnwards »

Show Forum Drop Down Menu