Cron error /bin/sh: 1: url: not found
Cron error /bin/sh: 1: url: not found
Hello,
I setup cron job like this,
![Image](https://s12.postimg.org/p1zex80n1/cron-error.png)
Now cron isn't working and I'm getting error email-
Subject :
MSG Body :
Please help.
I setup cron job like this,
![Image](https://s12.postimg.org/p1zex80n1/cron-error.png)
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
Code: Select all
/bin/sh: 1: https://www.domain.com/index.php?option=com_easydiscuss: not found
Re: Cron error /bin/sh: 1: url: not found
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
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
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
I got it from Internet
Command:
But I don't know what it is, can I use this?
Command:
Code: Select all
wget -q -O - "http://example.com/xx/file.php" > /dev/null 2>&1
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Cron error /bin/sh: 1: url: not found
Yes, you can use that.sifur wrote:I got it from Internet
Command:But I don't know what it is, can I use this?Code: Select all
wget -q -O - "http://example.com/xx/file.php" > /dev/null 2>&1
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
There is a tutorial at https://www.easycron.com/cron-job-tutor ... asydiscuss, may be help you set cron job.