Author Topic: CRON job using Dreamhost (for NWS-Alerts)  (Read 199 times)

0 Members and 1 Guest are viewing this topic.

Offline ingogliar

  • Senior Member
  • **
  • Posts: 59
CRON job using Dreamhost (for NWS-Alerts)
« 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.

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 490
    • Tyler Texas Weather
Re: CRON job using Dreamhost (for NWS-Alerts)
« Reply #1 on: December 27, 2021, 09:49:25 AM »
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

Offline ingogliar

  • Senior Member
  • **
  • Posts: 59
Re: CRON job using Dreamhost (for NWS-Alerts)
« Reply #2 on: December 27, 2021, 10:20:26 AM »
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 ]
« Last Edit: December 27, 2021, 10:24:38 AM by ingogliar »

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 490
    • Tyler Texas Weather
Re: CRON job using Dreamhost (for NWS-Alerts)
« Reply #3 on: December 27, 2021, 10:36:06 AM »
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

Offline ingogliar

  • Senior Member
  • **
  • Posts: 59
Re: CRON job using Dreamhost (for NWS-Alerts)
« Reply #4 on: December 27, 2021, 01:28:44 PM »
Steve,

Thank you -- I will give it a try and get back to you.

Thanks.

 

anything