I'm new to bash scripting and making a initial setup script that I can run to quickly set up a new install.
When installing ddclient
sudo apt-get install ddclient -y
it opens a command line configuration screen as below
How do I navigate these wizards in my bash script? In a generalized case (other tools like Raspbian's raspi-config
use a similar configuration screen), the script needs the ability in the bash script to move up, down, left, right, tab to select the <Ok>
, enter to select item, add text etc.
How can the bash script exit these configuration screens? Then the script could easily replace the configuration file with a custom version.