I am trying to setup to run an app (which has no UI) every Saturday night at midnight. This is the line I came up with fo the crontab file:
59 0 * * 6 /opt/bitnami/apache2/htdocs/sub_crud/application/controllers/cron_job
I don't know if this will work but I want to run it right now to see. I was thinking I might need:
59 0 * * 6 php -f /opt/bitnami/apache2/htdocs/sub_crud/application/controllers/cron_job
When I run the line below from the CLI in a putty terminal
php -f /opt/bitnami/apache2/htdocs/sub_crud/application/controllers/cron_job.php
Code:
XDebug could not open the remote debug file '/opt/bitnami/apache2/logs/xdebug.log'.
No direct script access allowedbitnami@ip-172-26-6-180:~$
I can deal with the xdebug.log issue since it is probably permissions. But how can I run my cron_job.php from the command line?
proof that an old dog can learn new tricks