I normally have several problems with how cron executes scripts as they normally don’t have my environment setup. Is there a way to invoke bash(?) in the same way cron does so I could test scripts before installing them?
I normally have several problems with how cron executes scripts as they normally don’t
Share
Add this to your crontab (temporarily):
After it runs, do this:
This assumes that your cron runs /bin/sh, which is the default regardless of the user’s default shell.
Footnote: if
envcontains more advanced config, egPS1=$(__git_ps1 " (%s)")$, it will error crypticallyenv: ": No such file or directory.