Welcome Guest, Not a member yet? Register   Sign In
running cronjob in Linux CLI
#1

(This post was last modified: 10-28-2018, 08:59 PM by richb201.)

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
Reply


Messages In This Thread
running cronjob in Linux CLI - by richb201 - 10-28-2018, 08:57 PM
RE: running cronjob in Linux CLI - by Pertti - 10-29-2018, 12:13 AM
RE: running cronjob in Linux CLI - by richb201 - 11-02-2018, 12:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB