I am writing an automated bash script for all my self-hosted apps.I am currently installing a meteor app like thistmux new -s kan -dtmux send -t kan cd /var/www/meteor/ ENTERtmux send -t kan export ROOT_URL='http://myip:3000' ENTERtmux send -t kan meteor --allow-superuser >> kan.log ENTERI want to install in such a way that the meteor app installs outside tmux and when successful installed and is running, it terminates, to restart inside tmux. So that when the script ends, all apps are installed, instead of what happens now : the script ending but the meteor app is still being installed in the tmux session
Meteor install to Ctrl-C when done and restart inside tmux
linux;bash;shell script;tmux