I am new to shell scripting. I am writing a startup script that takes an argument and launches a process based on the argument value.
Example : I want to launch my groovyConsole located inside some directory using the starter script like this.
sh Starter.sh groovy
Inside the script this is the logic
if [ $1 = "groovy" ] then cd Works/Groovy/groovy-1.8.6/bin ./groovyConsole fi
This does start the process but I see that this process is bind with the terminal window. If I close the terminal window the process is being killed (obviously). So I want to know if there is a way that running the above command will execute the script and start the process but close the terminal window?