vascop / runp

export python functions from files to the command line
41 stars 7 forks source link

Crontab issue: /bin/sh: 1: runp: not found #3

Closed JolleJolles closed 5 years ago

JolleJolles commented 6 years ago

When I try to run runp from crontab, e.g. with 50 * * * * runp hello.py test >> hello.txt 2>&1 it fails and I get the following error: /bin/sh: 1: runp: not found How can I fix this?

zefno commented 5 years ago

Try to use the exact path of your runp command, it might be in /usr/local/bin for example : 50 * * * * /usr/local/bin/runp hello.py test >> hello.txt 2>&1 To find the exact path : which runp

JolleJolles commented 5 years ago

Yes I was (many months ago) able to solve it by using the full path /usr/local/bin/python. Thanks for a great package!