'Cron job is not running for git pull
*/1 * * * * /bin/sh $user -c 'cd /Users/viki/dev/call_register && /usr/bin/git pull origin check' > cronlog.txt
I'm using above cron job and initiated it using crontab -e command, but it is not running and no log is seen in cronlog.txt.
If I manually try the below command in terminal, it is working as expected:
bin/sh $user -c 'cd /Users/viki/dev/avient_registry && /usr/bin/git pull origin check'
If I run it as a cron job it is not working, but if run a simple echo cron job is working.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
