Jump to content

Windows alternative for Cron Jobs


Stooney

Recommended Posts

So my home server runs on a windows xp machine (it's used for a lot more than a web server) and therefore doesn't have cron jobs available.  (At least not the popular linux one).

 

What is a reliable and free (oxymoron?) solution to run cron jobs on a windows machine?  (mainly looking for actual opinions, I know google exists and have used it and formed a list of options, just looking for opinions from those who have worked with them)

Link to comment
Share on other sites

That is true, but it won't do what I need. 

 

All I need is to somehow automate the running of a php script every 30 seconds (1 min if necessary).  Right now all I've found is a way to schedule firefox.exe to run and just set it's homepage to the script.  That feels very wrong tool for the job ish.  Plus I wouldn't know how to close the window aftwards.

 

Any ideas?

 

(note:  I don't need a browser window opened or anything as there is no html output from the script.  It just needs to run somehow.)

Link to comment
Share on other sites

Alright I figured it out finally.  I can just run the script via command prompt.  Just had set the include path properly.

 

To those curious about how to use command prompt:

c:\xampp\htdocs\php\php.exe c:\xampp\htdocs\test\test1\test.php

 

(if you use include or require in your scripts, use ini_set to set the include path, I had to at least)

ini_set('include_path', 'c:/xampp/htdocs/test/test1');

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.