Solved

CRON Setup

Posted on 2014-11-16
4
54 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 26
MYSQL simple update statement 3 32
Editing login page in zencart. 2 13
mysql left join sentence 7 19
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now