|
...
|
...
|
@@ -1281,17 +1281,12 @@ fi
|
|
1281
|
1281
|
function screen_it {
|
|
1282
|
1282
|
NL=`echo -ne '\015'`
|
|
1283
|
1283
|
if [[ "$ENABLED_SERVICES" =~ "$1" ]]; then
|
|
1284
|
|
- if [[ "$USE_TMUX" =~ "yes" ]]; then
|
|
1285
|
|
- tmux new-window -t stack -a -n "$1" "bash"
|
|
1286
|
|
- tmux send-keys "$2" C-M
|
|
1287
|
|
- else
|
|
1288
|
|
- screen -S stack -X screen -t $1
|
|
1289
|
|
- # sleep to allow bash to be ready to be send the command - we are
|
|
1290
|
|
- # creating a new window in screen and then sends characters, so if
|
|
1291
|
|
- # bash isn't running by the time we send the command, nothing happens
|
|
1292
|
|
- sleep 1.5
|
|
1293
|
|
- screen -S stack -p $1 -X stuff "$2$NL"
|
|
1294
|
|
- fi
|
|
|
1284
|
+ screen -S stack -X screen -t $1
|
|
|
1285
|
+ # sleep to allow bash to be ready to be send the command - we are
|
|
|
1286
|
+ # creating a new window in screen and then sends characters, so if
|
|
|
1287
|
+ # bash isn't running by the time we send the command, nothing happens
|
|
|
1288
|
+ sleep 1.5
|
|
|
1289
|
+ screen -S stack -p $1 -X stuff "$2$NL"
|
|
1295
|
1290
|
fi
|
|
1296
|
1291
|
}
|
|
1297
|
1292
|
|