Hello,
I'm new to cron jobs as a whole. I program in ASP.NET and cannot figure out how to get a job to run.
Do cron jobs work for ASP.NET?
Hello,
I'm new to cron jobs as a whole. I program in ASP.NET and cannot figure out how to get a job to run.
Do cron jobs work for ASP.NET?
Doesn't seem that there are that many ASPers here.
If those who do know it don't get you going, try:
1. Create an webpage/script that will do what you want when called from the web. Call it cron.aspx
2. Put it in a password protected directory like 'pwprotecteddir' so nobody will accidentally request it. Make up a username and password for it (do not use the ones you use to log in with etc)
3. Run a cron job with wget plus authentication:
If the script runs properly when you request it over the web, this should work.Code:wget 'http://username:password@yoursitename.com/pwprotecteddir/cron.aspx'
I just tested it out with a php script.
Nothing is always absolutely so.
[FONT=Courier New]Thank you. I went with your suggestion. The script runs fine over the web, but the cron job reports:
That's it!/home/neckelma/www/cron/Default.aspx: line 1: %@: No such file or directory
/home/neckelma/www/cron/Default.aspx: line 2:
: command not found
/home/neckelma/www/cron/Default.aspx: line 3: !DOCTYPE: No such file or directory
/home/neckelma/www/cron/Default.aspx: line 4:
: command not found
/home/neckelma/www/cron/Default.aspx: line 5: html: No such file or directory
/home/neckelma/www/cron/Default.aspx: line 6: head: No such file or directory
/home/neckelma/www/cron/Default.aspx: line 7: syntax error near unexpected token `<'
/home/neckelma/www/cron/Default.aspx: line 7: ` <title></title>
'
Last edited by sneckelmann; 10-04-2009 at 08:28 PM.
I got this figured out. For anyone questioning, you have to use "wget" (as suggested) followed by the full page address running the script.
Yes but I wasn't aware that you meant to use "wget" in the cron job. My mistake.
Any clue on how to get a script read permission for the mail directory?
Last edited by descalzo; 10-06-2009 at 07:48 PM.
Nothing is always absolutely so.
New email messages are stoked at '/home/USERNAME/mail/DOMAINNAME/EMAILUSERNAME/new/'
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Thanks guys.
I've started another thread at http://forums.x10hosting.com/program...directory.html in order to avoid crossing subjects.
Last edited by sneckelmann; 10-07-2009 at 03:26 PM.
I make a cron.php and use wget method but is shows erorr
i want to call another domain which is hosted on window hosting for schedule job can any one give me solution..![]()