I'm trying to add a an user input in CodeDeploy script. Here is my code
#!/bin/bash
# start service application
read -p "Please Enter Path For Configuration File:" -r config_path
java -jar Testing-1.0-SNAPSHOT-jar-with-dependencies.jar ${config_path} > /dev/null 2> /dev/null < /dev/null &
I'm using the > /dev/null 2> /dev/null < /dev/null & because it's a long-running process, and I want CodeDeploy to continue after the process starts. But right now, it doesn't ask me to enter the path for config file, nor show any error. Any help is much appreciated.