On Wed, Jun 10, 2015 at 5:33 PM, Chris Wojo wrote:
> crontab isn't using a PATH for your specified user, so you need to give an
> absolute path.
This is the fix. Thanks everyone!
___
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailm
crontab isn't using a PATH for your specified user, so you need to give an
absolute path.
On Wed, 10 Jun 2015 14:02:06 -0700 Craig Rodrigues
wrote
On Wed, Jun 10
> Here is how I'm calling the script in crontab:
> PATH=$PATH:/usr/local/bin
>
I can't remem
On Wed, Jun 10, 2015 at 5:02 PM, Craig Rodrigues wrote:
> Can you add right here:
>print("PATH: %s" % os.environ['PATH'], file=errors)
>
> and see what the PATH is in your errors file?
I should have mentioned that I'm using python3. The above is causing a
TypeError:
TypeError: 'str' does
On Wed, Jun 10
> Here is how I'm calling the script in crontab:
> PATH=$PATH:/usr/local/bin
>
I can't remember offhand, but I don't think you can do that.
I think you may need to fully specify the PATH instead of using $PATH.
> errors = open('/home/myuser/error', 'wb')
>
> with tempfile.Tempor