Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Web Hosting Forum


You are currently viewing our Web Hosting Forum as a guest. Please register to participate.
Login



Reply
Old 01-05-2007, 09:55 AM windows cron
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
I have a site written in php but the site is hosted on an Windows IIS machine... I need something that simulates the *nix cron so it can run one of my scripts every hour to update the DB with the needed information. Does anyone know of a windows cron solution?
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
 
Register now for full access!
Old 01-05-2007, 10:41 AM Re: windows cron
Skilled Talker

Posts: 57
Trades: 0
Depends on what access you have to the server. For the command line it's the "at" command. If your access is the GUI interface use the "winat" program. (Although that program is not always installed.)
GrandpaD is offline
Reply With Quote
View Public Profile
 
Old 01-05-2007, 10:47 AM Re: windows cron
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
I have physical access to the machine..... I can walk down the hall and get on it

my issue with doing that though is I can't execute a php like that can I? and if I do then it's going to have to open up an IE browser so i'm going to have hundreds of open IE windows on the machine.
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by blackhawkpowers; 01-05-2007 at 10:56 AM..
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 01-05-2007, 11:49 AM Re: windows cron
Skilled Talker

Posts: 57
Trades: 0
The GUI winat is only the interface; it doesn't run when a scheduled job runs. Actually winat and the command line at commands both work on the same list of scheduled jobs. Sorry but I don't know if you can run your script without a window opening; I'm not familiar with PHP running under Windows.
GrandpaD is offline
Reply With Quote
View Public Profile
 
Old 01-05-2007, 10:09 PM Re: windows cron
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
thanks for the help grandpaD since I asked I'll share the answer here with everyone the way grandpaD showed how to run command prompt is what you need to do you can execute php scripts via the command line with the following format..

c:\php\php.exe c:\scriptdir\script.php
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 01-06-2007, 11:33 AM Re: windows cron
Skilled Talker

Posts: 57
Trades: 0
I'm not sure at (or winat) will accept an argument. You may have to write a batch file such as script.cmd --
Code:
 
c:\php\php.exe c:\scriptdir\script.php
exit
and then call the .cmd file from at.

Back when I used this regularly I always used batch files, mainly because the jobs were more complex, so I don't remember if arguments work. BTW, the exit will make sure the DOS window closes; you may not need it.
GrandpaD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to windows cron
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.01986 seconds with 12 queries