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

Add to the docs how to DRY on multiple crontab lines and use a shell script instead #100

Open
alaznem opened this issue Nov 6, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@alaznem
Copy link

alaznem commented Nov 6, 2021

When setting up multiple lines in crontab, repeating $(command -v docker) run --rm --env-file=/home/bob/.bitcoin-dca ghcr.io/jorijn/bitcoin-dca:latest [arguments...] is annoying and error prone.

Proposed solution
I'd recommend to add to the Tips section of the docs file cron examples how to create a shell script file to reference in the crontab and pass the arguments from the crontab to this shellscript.

@jorijn
Copy link
Owner

jorijn commented Nov 8, 2021

I'm liking this idea. Thanks! I will pick it up when I have some time. If anyone wants to do this in the meantime, please! :)

@jorijn jorijn added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Nov 8, 2021
@HugoGit39
Copy link

Yes I am interested in this too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants