Page 1 of 1
Cron error /bin/sh: 1: url: not found
Posted: Mon Jun 12, 2017 10:00 pm
by sifur
Hello,
I setup cron job like this,
Now cron isn't working and I'm getting error email-
Subject :
Code: Select all
Cron <admin@domain> https://www.domain.com/index.php?option=com_easydiscuss&task=cron
MSG Body :
Code: Select all
/bin/sh: 1: https://www.domain.com/index.php?option=com_easydiscuss: not found
Please help.
Re: Cron error /bin/sh: 1: url: not found
Posted: Mon Jun 12, 2017 10:18 pm
by Mr.Erbutw
In control panel in masonry CRON, create a task, specify Cauchy, minutes, etc if you want not to specify a value then in the field enter *, and in the command field, enter /usr/bin/php /home/USER/web/domain/public_html/cron.php the
domain - your domain is Valid.
USER - Binding your user.
cron.php - Your task which should be executed
Re: Cron error /bin/sh: 1: url: not found
Posted: Mon Jun 12, 2017 10:44 pm
by sifur
Thanks, but here is no such cron.php file, it's just URL. Can I do this using domain URL?
Re: Cron error /bin/sh: 1: url: not found
Posted: Mon Jun 12, 2017 10:47 pm
by sifur
I got it from Internet
Command:
Code: Select all
wget -q -O - "http://example.com/xx/file.php" > /dev/null 2>&1
But I don't know what it is, can I use this?
Re: Cron error /bin/sh: 1: url: not found
Posted: Tue Jun 13, 2017 8:53 am
by tjebbeke
sifur wrote:I got it from Internet
Command:
Code: Select all
wget -q -O - "http://example.com/xx/file.php" > /dev/null 2>&1
But I don't know what it is, can I use this?
Yes, you can use that.
In cron you need to enter a command and not an url. The wget command will call the url.
Code: Select all
wget -q -O - "https://www.hereyourdomain.com/index.php?option=com_easydiscuss&task=cron" > /dev/null 2>&1
Re: Cron error /bin/sh: 1: url: not found
Posted: Fri Jun 23, 2017 5:47 pm
by Peggy
There is a tutorial at
https://www.easycron.com/cron-job-tutor ... asydiscuss, may be help you set cron job.