Solved

CRON Setup

Posted on 2014-11-16
4
61 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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