Created
August 19, 2021 10:30
-
-
Save bmmalone/a14c8ef353696401c375368e679f6fa6 to your computer and use it in GitHub Desktop.
Run a cronjob from an existing conda environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL=/bin/bash | |
BASH_ENV=/path/to/my/.bashrc_conda | |
00 03 * * * cd /my/working/dir; conda activate my_env; /path/to/my/script.py >>/path/to/my.stdout 2>>/path/to/my.stderr; conda deactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is basically just the SO answer Jean Monet.