WXforum.net
Web Weather => Weather Website PHP/AJAX scripting => Topic started by: ingogliar on December 27, 2021, 08:39:27 AM
-
My school's weather website is hosted on Dreamhost. Although following Dreamhost's instructions on how to launch a CRON job to run NWS-Alerts.php, I just cannot get the Dreamhost panel to run this, or any, CRON job.
Any suggestions (regarding syntax) would be greatly appreciated (and I hope that everyone has a safe and healthy 2022)!
Bob
PS -- I have no problems scripting or running CRON jobs on my PWS site (www.heightsweather.info) - which does NOT use Dreamhost.
-
Bob,
I run several CRON jobs on my DreamHost account. Can you post a screen shot of the Cron Job page so I can see how you're trying to set things up?
Steve
-
Steve,
First, thanks for trying to help me - I am sure that I am doing something really silly/stupid, so I apologize in advance for bothering you.
Here are -- what I think -- are the relevant screenshots.
Thanks again.
Bob [ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
-
Bob,
Hope I can help.
Try replacing your current "Command to run" with this: "wget -O /dev/null https://wostac.stacxlab.com/nws-alerts.php"
This is the format I use to call several scheduled PHP scripts throughout the day.
Steve
-
Steve,
Thank you -- I will give it a try and get back to you.
Thanks.