moocowmoo / dashman

DASH wallet/daemon management utilities
MIT License
52 stars 38 forks source link

no wait from prompt when embbeding dashman in another Bash script #41

Open jlsam opened 6 years ago

jlsam commented 6 years ago

I'm trying to automate the configuration of a new VPS, including updating the system, creating users, firewall rules, etc. I was testing dashman to speed up coding, but the script doesn't wait for the Y/n prompt and just plows ahead as if the job is done - and of course, errors appear.

I've been testing variations with the 'wait' command, but I guess the spawning of multiple sequential processes from the same command line makes wait move on after the first one is successfully completed. Do you know a simple way I could implement this, so that the main script behaves correctly and waits for all processes to finish before advancing?

I also see in the code options for unattended installation (so skipping prompts and yes-ing everything?), but I didn't see any instructions in the Readme (and didn't look too hard in the code, sry). Would this help?