Solved

CRON Setup

Posted on 2014-11-16
4
59 Views
Last Modified: 2014-12-04
Hello,

I have this as a task in plesk and it does not seem to be loading the script correctly, if I load the script via browser it adds data into the db, if I load it into the cron it does not add the data to the db.

wget -O /dev/null http://domain.com/cl/parse.php?action=list_page&from=1&to=100

Can I not use 'get data' in the cron?
0
Comment
Question by:movieprodw
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Ahmed Merghani
ID: 40446636
I think this issue related to the permission. The user run the cron need to be member of the Apache group -often "www-data" or "apache2"-.
0
 
LVL 1

Author Comment

by:movieprodw
ID: 40446640
Okay, it was working before I added the '&from=1&to=100' to the query, can you see any reason why that would break it?
0
 
LVL 8

Accepted Solution

by:
Ahmed Merghani earned 500 total points
ID: 40446644
OK. Try to put the URL in quotes:
wget -O /dev/null 'http://domain.com/cl/parse.php?action=list_page&from=1&to=100'

Open in new window

0
 
LVL 1

Author Closing Comment

by:movieprodw
ID: 40480610
Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question