Support Z Weather

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Cron error from cronzeather
(1 viewing) (1) Guest
ZWeather Bug Report
Go to bottomPage: 1
TOPIC: Cron error from cronzeather
#1264
Cron error from cronzeather 1 Year, 8 Months ago  
When running any of the following Cron commands

"/home/account/cron/cronzweather riversidesnowbirds.com"
"/home/rivers13/cron/cronzweather www.riversidesnowbirds.com"
"/home/rivers13/cron/cronzweather www.riversidesnowbirds.com"

(the previous line has http:// but it doesn't appear in the message.)


I receive the following error message from cronzweather

"invalid syntax for command, should be ' www.yourdomain.com'"

Any suggestions or ideas?

Jim
jwill

Last Edit: 2010/05/10 19:35 By .
The administrator has disabled public write access.
 
#1278
Re:Cron error from cronzeather 1 Year, 8 Months ago Karma: 0
Try this:
/usr/bin/php -f /home/account/public_html/cron/cronzweather www.yourdomain.com
TupeloWx
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Tupelo Weather-Up-to-the Minute
The administrator has disabled public write access.
 
#1279
Re:Cron error from cronzeather 1 Year, 8 Months ago Karma: 0
... http:// should appear before the www
It is being left off when posting.
TupeloWx
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Tupelo Weather-Up-to-the Minute
The administrator has disabled public write access.
 
#1282
Re:Cron error from cronzeather 1 Year, 8 Months ago Karma: 0
Received the same error message with this command:

invalid syntax for command, should be ' www.yourdomain.com'

I also tried "cd /home/account/public_html/cron/ php -f cronzweather www.yourdomain.com

I was able to get a phplist cron job working by using a curl command that I found but I don't know how to format the zweather cron command to work with curl.

Jim

P.S. - "html://" was deleted again by the message editor

TupeloWx wrote:
Try this:
/usr/bin/php -f /home/account/public_html/cron/cronzweather www.yourdomain.com
jwill
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1298
Re:Cron error from cronzeather 1 Year, 8 Months ago Karma: 0
After trying every possible solution I can think of, I have given up trying to pass an argument through a cron job.

Since I only have one site, I eliminated the URL argument in the cron command and eliminated the loop in cronzweather and hard coded the URL. That works.

Jim
jwill
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1