Please provide us a step by step solution for setting up the cron job. We have tried in too many ways but nothing working fine. ( Server is Linux based)
The Step we followed are listed below,
Created a controller and function
added the line of code in Console/Kernal.php
$schedule->call('PushController@sendTanglePush')->cron('* * * * * *');
And in root/crontab.txt file added with following lines of code
Cron lines always have 6 fields at the start specifying how often to run. You probably know that, but just make sure you have 6 on each line. The fields are minute hour day-of-month month day-of-week. Everything after that is treated as a sh command. man 5 crontab if you want to read up more on that.
You must have a blank line at the end of the crontab or the last job will get ignored.
Since your error is coming from sh I'd try running the each line's command by hand. If you post a code block with your cron tab we can probably help more. Click the "GitHub-flavored" link below to see how. You could also create a Gist and paste a link here.