WebFaction
Community site: login faq

Hi All I'm trying to make crontab execute a php file, currently set it to 5 minutes for a test (but the reality will be 1 day and 7 days)

Here's what i put now:

*/5 * * * * /usr/local/bin/php $HOME/webapps/PATHTOSCRIPT/email.php
*/5 * * * * php -q /home/MYSERNAME/webapps/PATHTOSCRIPT/email.php
*/5 * * * * /usr/local/bin/php /home/MYSERNAME/webapps/PATHTOSCRIPT/email.php

But it doesnt seems to send any result (the result should be an email reminder)

Anything wrong with my cron?

Thanks!

asked 07 Oct, 17:28

deskha's gravatar image

deskha
103
accept rate: 0%

edited 07 Oct, 17:32


Use the full path to php binary,

/5 * * * /usr/local/bin/php71 /home/MYSERNAME/webapps/PATHTOSCRIPT/email.php

permanent link

answered 07 Oct, 21:52

johns's gravatar image

johns ♦♦
5.0k29
accept rate: 22%

Thanks Johns, will try it

permanent link

answered 08 Oct, 02:12

deskha's gravatar image

deskha
103
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×256
×254
×80

question asked: 07 Oct, 17:28

question was seen: 216 times

last updated: 08 Oct, 02:12

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM