Chron jobs in Windows?

hafa

Perch
Is there any way to run a scheduled job on our Windows servers (reseller account)? I need to run a small asp/asp.net script once per day.

Thanks in advance...
 
if you have a unix account you can make a cronjob there to hit the asp/asp.net page you need.
 
So I can just call the .asp page from a chon job on a Unix account hmmm? Not a bad way to go...And to think that I was preparing to learn php to pull this one off...
 
FYI I think the Cron command should be something like this:

/usr/local/bin/lynx -dump /dev/null http://www.yourdomain.com/yourscript.asp > /dev/null

This tells unix to run the LYNX command (a basic browser proggy which everyone used to use before graphical browsers appeared) which browses to your asp page and hence triggers your script. It's very handy indeedy.

The Cron scheduling settings are tricky. So is finding Cron itself. :) Look under FTP Manager (of all places) in your unix hsphere control panel. Then click the Crontab Edit icon.

There should be help (?) icons available to tell you how to set the schedule, but for example if you want a script to run once every day at 7pm, this is the setting:

Minute: 0
Hour: 19
Day of Month: *
Month: *
Day of Week: *
Command: /usr/local/bin/lynx -dump /dev/null http://www.yourdomain.com/yourscript.asp > /dev/null

If you only want it to run on weekdays, then set Day of Week to "1,2,3,4,5" (without quotes)

Hope that helps.
 
I have one Linux account just for cronjobs on Web3.

I use the following and works great and fires off every hour at the top of the hour.

Minute: 0
Hour: *
Day of Month: *
Month: *
Day of Week: *
Command: wget -q --delete-after /dev/null http://www.yourdomain.com/yourscript.asp

Found the best cronjob info for Web3 since it uses wget at www.gnu.org
using the online manual which has all the information.
 
antic said:
What's the pros and cons between using lynx and wget? Do they both work the same?
Which server are you on? I only have one Linux account so I don't know if all Linux servers at JH are setup the same. wget is the only thing I could get to work and that is what is installed on Web3, found that in the file manager.
 
Actually I used to use that command on my old host, but haven't tried it here yet - I assumed linux is linux and it would work here as well. Thanks for the wget post, coz I'll try that if lynx doesn't work here.
 
Thanks much for the advice, folks! The web app is still a few months away from implementation, but once we're ready to test the mail function, I'll be sure to revisit this thread and let everyone know how it went and maybe ask some really stupid questions :rolleyes:
 
HansMerkl said:
Maybe jodohost can offer accounts that only offer cron jobs without disk space for a lower price? :rolleyes:

This thread is about Chron jobs. You'll have to start another thread. :D
 
antic said:
Well the thread title says otherwise... I'm sure the admin is watching right now and you're |this| close to being banned altogether from the forum. All will be forgiven however, if you take note of this:

http://www.linuxbench.org/Posting.swf

;)

Now THAT was funny! :rofl: Not sure what predicated your comment, Antic, as the post looks like it's been deleted, but I'm glad that it gave you the opportunity to post that link (Hafa runs off to other forum to share...)
 
Back
Top