Sub-shell commands must be execute automatically within bash scripts.
It runs automatically then executing the sub-shell within the bash but it requires human interaction I want to execute it automatically within my bash script.
My main Bash Script command lists:
#!/bin/sh # ****some-commands**** askbot-setup;
Deploying Askbot - Django Q&A forum application Problems installing? -> please email email@example.com To CANCEL - hit Ctr-C at any time Enter directory path (absolute or relative) to deploy askbot. To choose current directory - enter "." > . Please select database engine: 1 - for postgresql, 2 - for sqlite, 3 - for mysql, 4 - oracle type 1/2/3/4: 3 Please enter database name (required) > askbotdb Please enter database user (required) > askbotuser Please enter database password (required) > askbotpasswords Copying files: * __init__.py * manage.py * urls.py * django.wsgi Creating settings file settings file created
I want to automate given commands in myshell script so that it can run without human interaction.
. 3 askbotdb askbotuser askbotpasswords
Then what is command for my sub shell for above commands after
askbot-setup commands for Bash script.