Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running scripts as cron jobs with one or several Mamba environments in Ubuntu 22.04 #3775

Open
fabas-mpcdf opened this issue Jan 28, 2025 · 0 comments
Labels
type::question Further information is requested

Comments

@fabas-mpcdf
Copy link

Hi!

I have on Ubuntu 22.04 a Python script running with the "system" Python environment as a cron job. I would like to run a second script running within a Mamba environment.

How should I define my cron job exactly, knowing that it is running in a non-interactive shell. Should I use 'mamba activate' or 'mamba run'? The first script is important and I would like it to keep running without being disturbed.

If I want to move the first script in a Mamba environment, I would then have two scripts running in their own Mamba environment. In that case, how should I define my cron jobs?

@Hind-M Hind-M added the type::question Further information is requested label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants