Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

Cron error /bin/sh: 1: url: not found

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
sifur
Posts: 26
Joined: Mon Dec 28, 2015 10:43 pm

Cron error /bin/sh: 1: url: not found
  • Quote

Post by sifur » Mon Jun 12, 2017 10:00 pm

Hello,
I setup cron job like this,
Image

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.
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Cron error /bin/sh: 1: url: not found
  • Quote

Post by Mr.Erbutw » Mon Jun 12, 2017 10:18 pm

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
Top

sifur
Posts: 26
Joined: Mon Dec 28, 2015 10:43 pm

Re: Cron error /bin/sh: 1: url: not found
  • Quote

Post by sifur » Mon Jun 12, 2017 10:44 pm

Thanks, but here is no such cron.php file, it's just URL. Can I do this using domain URL?
Top

sifur
Posts: 26
Joined: Mon Dec 28, 2015 10:43 pm

Re: Cron error /bin/sh: 1: url: not found
  • Quote

Post by sifur » Mon Jun 12, 2017 10:47 pm

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?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Cron error /bin/sh: 1: url: not found
  • Quote

Post by tjebbeke » Tue Jun 13, 2017 8:53 am

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
Top

Peggy
Posts: 4
Joined: Fri Jun 12, 2015 6:43 am

Re: Cron error /bin/sh: 1: url: not found
  • Quote

Post by Peggy » Fri Jun 23, 2017 5:47 pm

There is a tutorial at https://www.easycron.com/cron-job-tutor ... asydiscuss, may be help you set cron job.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password