I've been scouring the internet for a solution, but I have a shell script I want to run that works fine from the cli
but not from cron
.
This works from my prompt: sh ~/Applications/scripts/script.sh
crontab
entry:
* * * * * /home/user/Applications/scripts/script.sh
script looks as follows:
#!/bin/sh
/usr/local/bin/myapp update &> /home/user/myapp_sh_update_stdout.log
/usr/local/bin/myapp run &> /home/user/myapp_sh_run_stdout.log
Thoughts? Experiments with other answers are no good for me, so I am going specific to see what I could do differently. Running it every minute to debug, but it will be run at a morning hour on one day of the week when confirmed working.
* * * * * root /home/user/Applications/scripts/script.sh
– Pilot6 Mar 09 '19 at 16:35/etc/crontab
– steeldriver Mar 09 '19 at 16:39