I have a little script to run a search daemon, like:
run.sh:
cd ~/apache-solr
xterm -e java -jar start.jar
sleep 5
cd ~/anotherFolder
#make something else
The problem:
– after the xterm -e ... command the script waits for the command is complete to run another commands;
The question:
Can we run next command without waiting for the end of xterm -e ... command executing?
P.S.
Sorry for my English and Thanks for any help.
Or even better you could use
nohupLike:
With nohup your command will not receive a killsig even if you close your putty session for example.