You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there,
I seem to be having a bit of an issue finding a reliable way to access environmental variables and functions from jobs. I see that the jobs return back $SHELL as /bin/sh. Is there some way I can make all jobs run under a different shell (such as zsh) so that it can automatically pick up my .zshenv file or if not that, at least pick up the /etc/bash.bashrc or something along those lines, straight from the cmd line within the job file so that I don't have to make each job individually source it?
Thanks,
-MH
The text was updated successfully, but these errors were encountered:
I just thought of this, so I wanted to post it while I was thinking of it. Being able to have settings such as the ones below would be awesome.
prefs:
shell: /bin/zsh # Set default shell for all jobssource: $HOME/.jobberenv # Default source file for all jobsjobs:
myjob1:
cmd: $HOME/scripts/job1.zshsource: $HOME/.job1env # Source for specific job in addition to the default sourcetime: '*/30 * * * * *'onError: Continue myjob2:
cmd: $HOME/scripts/job2.xshshell: /usr/bin/env xonsh # Shell for this job, overriding default shell abovesource: $HOME/.job2env # Source for specific job in addition to the default sourcetime: '*/30 * * * * *'onError: Continue
Hey there,
I seem to be having a bit of an issue finding a reliable way to access environmental variables and functions from jobs. I see that the jobs return back $SHELL as /bin/sh. Is there some way I can make all jobs run under a different shell (such as zsh) so that it can automatically pick up my .zshenv file or if not that, at least pick up the /etc/bash.bashrc or something along those lines, straight from the cmd line within the job file so that I don't have to make each job individually source it?
Thanks,
-MH
The text was updated successfully, but these errors were encountered: