I believe I now have the paths functioning in my cron job, but I am getting an out of memory error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3072 bytes) in /home/mysite/public_html/shop/vendor/composer/ClassLoader.php on line 412
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/mysite/public_html/shop/vendor/magento/module-deploy/Console/Command/SetModeCommand.php on line 106
Increase your memory size in php.ini file up to 128M. If your are using LAMP with php7, apache2 you can found here
otherwise execute the following command
and change the following line:
memory_limit = 128M
Thank you Manish. I have increased the memory (up to 2G) and even had customer support try it as well. It does not seem to have any effect - I still get the fatal error. I am thinking that it is a problem because I use a shared host.