php - Cron job not running on XAMPP Mac OS X but works otherwise -
i trying run cron job using xampp on mac. i've tried following commands, file isn't created @ all. if run manually, using localhost/writer/writer.php
, works.
i've looked on google , nothing address or resonates problem. appreciated.
the commands tried:
* * * * * /applications/xampp/xamppfiles/bin/php /applications/xampp/xamppfiles/htdocs/writer/writer.php * * * * * php /applications/xampp/xamppfiles/htdocs/writer/writer.php
code being run test purposes.
<?php $file = 'people.txt'; // append new person file $current = "john smith\n"; // write contents file file_put_contents($file, $current); ?>
note, i've tried running sample cron outside of xampp, doing: (it worked).
* * * * * echo 'test' > /desktop/test.txt
also, if in directory , "php writer.php
" works well.
i found solution. quite stupid of me , yes, silly @ best.
the file being output @ root, , verify, did check cd ~/
.
there was, file.
Comments
Post a Comment