jmthd Posted June 24, 2013 Share Posted June 24, 2013 (edited) I am using PS 1.4.9, trying to set cron jobs to rebuild the price, URL and attribute indexes nightly, per the layered navigation module's configuration page: You can set a cron job that will rebuild price index using the following URL:https://www.MYDOMAIN...35049178&full=1 You can set a cron job that will rebuild URL index using the following URL: https://www.MYDOMAIN...9178&truncate=1 You can set a cron job that will rebuild attribute index using the following URL: https://www.MYDOMAIN...oken=3b35049178 I have tried entering each of these URLs in (separately) in the command field (after selecting one of the "Common Settings" for scheduling) at my cPanel's cron jobs page. This fails every time. Am I doing something wrong? (I have limited experience with cron jobs, but I have made them work before...). Thanks for any guidance Edited June 25, 2013 by jmthd (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted June 24, 2013 Share Posted June 24, 2013 'It fails everytime' is to vague. best to copy and paste the command and output here to the forum. Link to comment Share on other sites More sharing options...
jmthd Posted June 25, 2013 Author Share Posted June 25, 2013 (edited) I entered this URL in the Command field: https://www.MYDOMAIN.com/modules/blocklayered/blocklayered-price-indexer.php?token=3b35049178&full=1'>https://www.MYDOMAIN.com/modules/blocklayered/blocklayered-price-indexer.php?token=3b35049178&full=1 The automatically-generated email I get from the Cron Daemon reads: /usr/local/cpanel/bin/jailshell: https://www.MYDOMAIN.com/modules/blocklayered/blocklayered-price-indexer.php?token=3b35049178: No such file or directory Edited June 25, 2013 by jmthd (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted June 25, 2013 Share Posted June 25, 2013 I entered this URL in the Command field: https://www.MYDOMAIN...35049178&full=1 The automatically-generated email I get from the Cron Daemon reads: /usr/local/cpanel/bin/jailshell: https://www.MYDOMAIN...oken=3b35049178: No such file or directory you may have better luck contacting your hosting provider as they can help you with correct path to your domain.... 1 Link to comment Share on other sites More sharing options...
jmthd Posted June 25, 2013 Author Share Posted June 25, 2013 I get it now. All I had to do was compare the path used in that command to another command I had been successfully using. Duh. Thanks for the clue El Patron. 1 Link to comment Share on other sites More sharing options...
jmthd Posted June 25, 2013 Author Share Posted June 25, 2013 (edited) Now my command looks like this: /usr/bin/php -q /home/corework/public_html/modules/blocklayered/blocklayered-price-indexer.php?token=3b35049178&full=1 And the email reads: No input file specified Edited June 25, 2013 by jmthd (see edit history) 1 Link to comment Share on other sites More sharing options...
jmthd Posted June 25, 2013 Author Share Posted June 25, 2013 I found a tip on another forum that recommended replacing the "?" with a space. This produces and email that reads: 1 Is that success? I tried for a similar job and got the output: -1 What does that mean? Link to comment Share on other sites More sharing options...
El Patron Posted June 25, 2013 Share Posted June 25, 2013 for PS, a '1' typically means true, i.e. return 1 = positive, 0 = false. no knowing what the 'similar' job is, but in some languages a -1 is false. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now