?
Solved

CRON Setup

Posted on 2014-11-16
4
Medium Priority
?
72 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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 …
Suggested Courses

752 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