Skip to content

Instantly share code, notes, and snippets.

@bmmalone
Created August 19, 2021 10:30
Show Gist options
  • Save bmmalone/a14c8ef353696401c375368e679f6fa6 to your computer and use it in GitHub Desktop.
Save bmmalone/a14c8ef353696401c375368e679f6fa6 to your computer and use it in GitHub Desktop.
Run a cronjob from an existing conda environment
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
@bmmalone
Copy link
Author

This is basically just the SO answer Jean Monet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment