0

I have a number of environment variables set, which I utilize in python scripts. When I run manually it works without a problem. When I schedule it to run via Cron, the variables do not return anything. I am using MacOS to develop and anticipate to automate this on a Raspberry Pi eventually.

Without having to create new variables inline (which will require two places to update) how can I utilize environment variables in python scripts when run via Cron?

1

1 Answer 1

0

After the scheduling information place . {path you want to share}

* * * * * . {path to the env file} {script to run}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.