bitcoin-dca icon indicating copy to clipboard operation
bitcoin-dca copied to clipboard

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

Open alaznem opened this issue 4 years ago • 2 comments

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.

alaznem avatar Nov 06 '21 19:11 alaznem

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 avatar Nov 08 '21 09:11 jorijn

Yes I am interested in this too!

HugoGit39 avatar Jan 05 '23 11:01 HugoGit39