aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/start-sim
diff options
context:
space:
mode:
authorroot2019-05-19 20:12:00 +1000
committerroot2019-05-19 20:12:00 +1000
commitc01c0b11daf1a1d42ae6e6d67ab79f7fc340bc0f (patch)
tree68ccb819df7e969a7edb336f41134236cf5ab9ad /scripts/start-sim
parentAdd ionice to gitAR. (diff)
downloadopensim-SC-c01c0b11daf1a1d42ae6e6d67ab79f7fc340bc0f.zip
opensim-SC-c01c0b11daf1a1d42ae6e6d67ab79f7fc340bc0f.tar.gz
opensim-SC-c01c0b11daf1a1d42ae6e6d67ab79f7fc340bc0f.tar.bz2
opensim-SC-c01c0b11daf1a1d42ae6e6d67ab79f7fc340bc0f.tar.xz
Remove double [] from the tmux tabs.
Diffstat (limited to '')
-rwxr-xr-xscripts/start-sim16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/start-sim b/scripts/start-sim
index 936fe13..a707ddf 100755
--- a/scripts/start-sim
+++ b/scripts/start-sim
@@ -89,7 +89,7 @@ case $(basename $0) in
89 chmod 640 ../config/Robust.ini 89 chmod 640 ../config/Robust.ini
90 ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}" 90 ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}"
91 else 91 else
92 ${tmux_command} new-window -dn "[${title}]" -t "${tmux_session}:${num}" "${cmd}" 92 ${tmux_command} new-window -dn "${title}" -t "${tmux_session}:${num}" "${cmd}"
93 fi 93 fi
94 fi 94 fi
95 95
@@ -121,8 +121,8 @@ case $(basename $0) in
121 if [ -e /var/run/opensim/${tgt}.pid ]; then 121 if [ -e /var/run/opensim/${tgt}.pid ]; then
122 ${tmux_send}:"[${title}]" "${cmd}" Enter 122 ${tmux_send}:"[${title}]" "${cmd}" Enter
123 # Generate the map tiles, coz the good generator leaks memory badly if you leave it turned on. 123 # Generate the map tiles, coz the good generator leaks memory badly if you leave it turned on.
124 ${tmux_send}:"[${title}]" "generate map" Enter 124 ${tmux_send}:"${title}" "generate map" Enter
125 ${tmux_send}:"[${title}]" "force gc" Enter 125 ${tmux_send}:"${title}" "force gc" Enter Enter Enter
126 else 126 else
127 echo "No OAR created for ${title}, it's not running." 127 echo "No OAR created for ${title}, it's not running."
128 fi 128 fi
@@ -130,13 +130,13 @@ case $(basename $0) in
130 130
131 "stop-sim") 131 "stop-sim")
132 if [ -e /var/run/opensim/${tgt}.pid ]; then 132 if [ -e /var/run/opensim/${tgt}.pid ]; then
133 ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in one minute!" Enter 133 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in one minute!" Enter
134 ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in one minute!" Enter 134 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in one minute!" Enter
135 sleep 30 135 sleep 30
136 ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in thirty seconds!" Enter 136 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
137 ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in thirty seconds!" Enter 137 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
138 sleep 30 138 sleep 30
139 ${tmux_send}:"[${title}]" "shutdown" Enter 139 ${tmux_send}:"${title}" "shutdown" Enter
140 else 140 else
141 echo "Sim ${title} is not running, so not stopping." 141 echo "Sim ${title} is not running, so not stopping."
142 fi 142 fi