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.
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.
Oh yeah... that's right. Been about 6 years since I used it, and didn't have a Windows machine to check it on.
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?
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!
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.
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.