Pay attention: Cron job command line parameter syntax

Post Reply
jmcafee
Observer
Observer
Posts: 22
Joined: Fri Sep 08, 2017 5:01 am
Location: West Linn, Oregon
Station model: Davis Vantage Pro 2
Software: Meteohub
Contact:

Pay attention: Cron job command line parameter syntax

Post by jmcafee » Sat Jun 09, 2018 9:29 pm

If you need to run several different cron job scripts, don't assume (like I did) that the command line syntax is identical.

The cron.php script in /load parses the command line password from "password=<update password>"
The update.php script in /plugins/metoehub parses the command line password from "pass=<update password>"

In the ideal world the syntax would be identical; however the correct syntax is documented by Jachym in both instances.

User avatar
Fraggboy
Forecaster
Forecaster
Posts: 193
Joined: Wed Sep 27, 2017 2:45 pm
Location: Sunny California
Station model: Bloomsky II + Storm
Software: Bloomsky
Contact:

Re: Pay attention: Cron job command line parameter syntax

Post by Fraggboy » Sun Jun 10, 2018 3:14 am

Great post. I aways check in the php file to see what syntax is needed. :)
Image

Post Reply