Artifact 09cc9db293fcfe8d1583176fee705eef334d431f:
- Executable file utils/viewscreen — part of check-in [7172bc60e2] at 2016-10-14 17:42:49 on branch v1.62 — Use viewscreen by default (user: mrwellan, size: 488) [annotate] [blame] [check-ins using]
#!/bin/bash if ! type screen &> /dev/null;then xterm -geometry 180x20 -e "$*;echo Press any key to continue;bash -c 'read -n 1 -s'" & exit fi if [[ $(screen -list | egrep 'Attached|Detached'|awk '{print $1}') == "" ]];then # echo "No screen found for displaying to. Run \"screen\" in an xterm" # exit 1 xterm -e screen & sleep 1 fi cmd="$*" screen -X screen bash -c "$cmd;echo \"Press any key to continue, ^a <space> to see other windows\";bash -c 'read -n 1 -s'"