Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    62
    Thanks
    19
    Thanked 1 Time in 1 Post

    WAMP: scheduled job in seconds

    Hi!

    Id need to run a specific PHP file in matter of seconds via the WAMP's
    scheduled job interface (or another option if such comes up from ya folks).

    The scheduled jobs tab only allows running on minute/hourly etc basis, but
    Id need to run a script continously every 2-10 seconds depending what I
    want to put up with it.

    http://www.stumbleupon.com/s/#1fBwVG...org/node/31506

    That site tells generally how to use the jobs, but it wont help me with
    the idea of getting a script running every x seconds. So how do i do it? Thanks!

  • #2
    Regular Coder hinch's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    923
    Thanks
    25
    Thanked 80 Times in 80 Posts
    get unix tools for windows, run it as cron job

    simples

    failing that just install a *nix flavour (personally i prefer deb) and use a real cron and such rather than using a development environment to host your website on
    A programmer is just a tool which converts caffeine into code

    My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
    My hobby: http://www.angel-computers.co.uk
    My life: http://www.furious-angels.com

  • #3
    New Coder
    Join Date
    Mar 2009
    Posts
    62
    Thanks
    19
    Thanked 1 Time in 1 Post
    Didnt know of that, might you be able to point me into a right direction?
    I cant seem to be able to get anything reasonable with googling :P

  • #4
    New Coder
    Join Date
    Mar 2009
    Posts
    62
    Thanks
    19
    Thanked 1 Time in 1 Post
    http://cronw.sourceforge.net/#cvs_section

    That is something i belive, but i dont want/need to instal Pearl on my machine
    so will be searching for another option..

  • #5
    Regular Coder hinch's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    923
    Thanks
    25
    Thanked 80 Times in 80 Posts
    infact you don't even have to use unix tools.

    http://www.iopus.com/guides/winscheduler.htm

    windows scheduler to execute a batch file which does something like c:\wamp\bin\php\php.exe -c c:\wamp\www\file.php

    should be able to work it out from there I think
    A programmer is just a tool which converts caffeine into code

    My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
    My hobby: http://www.angel-computers.co.uk
    My life: http://www.furious-angels.com

  • #6
    New Coder
    Join Date
    Mar 2009
    Posts
    62
    Thanks
    19
    Thanked 1 Time in 1 Post
    I havent tried that yet.. Will let you know when I get back to that problem =)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •