Solved

CRON Setup

Posted on 2014-11-16
4
60 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …

733 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