Need a way to auto-hit my script (scheduling)

Discussion in 'Products & Tools' started by ericshawn, Nov 27, 2005.

  1. #1
    I need a way to automatically hit one of my scripts on a scheduled basis. I've tried everything with my webhost to get some kind of scheduler to do it, they have no method of doing it.

    Anyone know how to do this, aside from keeping an auto-refreshing browser window open, which is very clunky? Note: I don't have access to the server command line, it is shared hosting.
     
    ericshawn, Nov 27, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You could use wget or curl to do it with an automated process (the schedule service built into Windows for example). I believe at in the command prompt will give you the syntax.
     
    digitalpoint, Nov 27, 2005 IP
  3. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #3
    at --help =)
     
    Shoemoney, Nov 27, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Oh yeah... that's right. Been about 6 years since I used it, and didn't have a Windows machine to check it on. :)
     
    digitalpoint, Nov 27, 2005 IP
  5. Entelarust

    Entelarust Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ddoes your host provide access to any sort of crontab?
     
    Entelarust, Nov 27, 2005 IP
  6. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #6
    when you say:
    That reminds me of some mvs as400 operator talk!

    Maybe you could help us help you by answering some questions

    1) What kind of operating system does your webhost use? (windows/linux/bsd/macosx/ect)

    2) Do you have command line access to the webserver where your machine is.

    3) Do you have an administration panel of some sort on your webserver? If yes does it have anything like cron, maintenance, or anything like that?
     
    Shoemoney, Nov 27, 2005 IP
  7. ericshawn

    ericshawn Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I don't have access to the server command line or otherwise; it is shared hosting.
     
    ericshawn, Nov 27, 2005 IP
  8. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #8
    Also try searching google for "pseudo cron".
    That might be the ticket for you.
     
    dvduval, Nov 27, 2005 IP
  9. ericshawn

    ericshawn Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks, looked at the pseudo cron idea, however, it depends on people occasionally hitting a page to execute at specific intervals. I've already created a script that does that. It is no good for my needs because 1) the job being performed is sending mail from a database and using the mailer I'm using it takes roughly 3 seconds per email, creating a big delay for the person hitting the page, and 2) the site I'm going to be creating won't necessarily have a lot of hits at first to the degree that I can depend upon them to trigger the function.

    Thanks for the ideas thus far!
     
    ericshawn, Nov 27, 2005 IP
  10. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #10
    as shawn sugested above use at on your windows computer and wget to hit the script.

    will be easy to do and you can hammer away on it from your windows machine.
     
    Shoemoney, Nov 27, 2005 IP
  11. ericshawn

    ericshawn Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thanks, all. I'm not sure about the AT solution either, that would require my machine to be on at all times. Almost as clunky as keeping a refreshing web browser open.
     
    ericshawn, Nov 28, 2005 IP