goldsilversingapore Posted February 21, 2013 Share Posted February 21, 2013 I created a cron job as below to enable catalog mode in prestashop on 11pm and disable it on 9am every weekdays. But i could not get it to work and I hope someone would advice me which area I done wrong. Minute Hour Day Month Weekday Command Actions * 9,23 * * 1-5 wget -a /home/teststore/public_html/catalog_mode.txt https://www.teststore.com.sg/catalog_mode.php -O /dev/null Edit Delete Command: wget -a /home/teststore/public_html/catalog_mode.txt https://www.teststore.com.sg/catalog_mode.php -O /dev/null Appreciate someone could advice me. Thanks. Link to comment Share on other sites More sharing options...
tomerg3 Posted February 21, 2013 Share Posted February 21, 2013 Does it work when you try to manually run it? What does the log file say? Did you try to add your email address in the cron (cpanel), it will email you the output. Did you try running using plain php and not using wget? Link to comment Share on other sites More sharing options...
goldsilversingapore Posted February 21, 2013 Author Share Posted February 21, 2013 (edited) Manually i try to run https://www.teststor...atalog_mode.php it is working, but cron job seems not running. I do not know how to run plain php. I do not know the command to do it. I dunno what is the cause of the issue. Edited February 21, 2013 by goldsilversingapore (see edit history) Link to comment Share on other sites More sharing options...
goldsilversingapore Posted February 21, 2013 Author Share Posted February 21, 2013 (edited) Please find attached for the catalog_mode.txt file catalog_mode.txt Edited February 21, 2013 by goldsilversingapore (see edit history) Link to comment Share on other sites More sharing options...
goldsilversingapore Posted February 21, 2013 Author Share Posted February 21, 2013 (edited) Does it work when you try to manually run it? What does the log file say? Did you try to add your email address in the cron (cpanel), it will email you the output. Did you try running using plain php and not using wget? Can you give me the exact command for plain php? Minute Hour Day Month Weekday Command Actions * 9,23 * * 1-5 wget -a /home/teststore/public_html/catalog_mode.txt https://www.teststore.com.sg/catalog_mode.php -O /dev/null Edit Delete Command: wget -a /home/teststore/public_html/catalog_mode.txt https://www.teststore.com.sg/catalog_mode.php -O /dev/null Please advice the command. Appreciate your help. Thanks! Edited February 21, 2013 by goldsilversingapore (see edit history) Link to comment Share on other sites More sharing options...
mlbx Posted February 22, 2013 Share Posted February 22, 2013 (edited) Doesn't that first asterisk mean 'every minute'? There is a useful interactive learning resource at http://www.dataphyx.com that lets you enter any combination of crontab timing parameters and see a list of future job run-times. Edited April 8, 2013 by mlbx (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts