I'm using a cron job that runs a PHP script like this:
* * * * * php /path/to/script schedule:run >> /dev/null 2>&1
But is running with older version of PHP. When I run which PHP I get /path/to/php7.0, and I need to change the path used by cron to run PHP. Is this possible without specifying it in cron job like this?
* * * * * /path/to/php7.0 /path/to/script schedule:run >> /dev/null 2>&1
 
     
     
    