|
@@ -8,7 +8,8 @@
|
|
|
commandname="START"
|
|
commandname="START"
|
|
|
commandaction="Starting"
|
|
commandaction="Starting"
|
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
-addtimestamp="gawk '{ print strftime(\\\"[$logtimestampformat]\\\"), \\\$0 }'"
|
|
|
|
|
|
|
+logtimestampformat_tmux="${logtimestampformat//%/%%}"
|
|
|
|
|
+addtimestamp="gawk '{ print strftime(\"[$logtimestampformat_tmux]\"), \$0; fflush() }'"
|
|
|
fn_firstcommand_set
|
|
fn_firstcommand_set
|
|
|
|
|
|
|
|
# This will allow the Jedi Knight 2 version to be printed in console on start.
|
|
# This will allow the Jedi Knight 2 version to be printed in console on start.
|
|
@@ -157,7 +158,7 @@ fn_start_tmux() {
|
|
|
if [ "${consolelogging}" == "on" ] || [ -z "${consolelogging}" ]; then
|
|
if [ "${consolelogging}" == "on" ] || [ -z "${consolelogging}" ]; then
|
|
|
# timestamp will break mcb update check.
|
|
# timestamp will break mcb update check.
|
|
|
if [ "${logtimestamp}" == "on" ] && [ "${shortname}" != "mcb" ]; then
|
|
if [ "${logtimestamp}" == "on" ] && [ "${shortname}" != "mcb" ]; then
|
|
|
- TERM=screen tmux -L "${socketname}" pipe-pane -o -t "${sessionname}" "exec bash -c \"cat | $addtimestamp\" >> '${consolelog}'"
|
|
|
|
|
|
|
+ TERM=screen tmux -L "${socketname}" pipe-pane -o -t "${sessionname}" "exec ${addtimestamp} >> '${consolelog}'"
|
|
|
else
|
|
else
|
|
|
TERM=screen tmux -L "${socketname}" pipe-pane -o -t "${sessionname}" "exec cat >> '${consolelog}'"
|
|
TERM=screen tmux -L "${socketname}" pipe-pane -o -t "${sessionname}" "exec cat >> '${consolelog}'"
|
|
|
fi
|
|
fi
|