AutoTest: Add ability to run AC3.2.1 in screen

This commit is contained in:
Bill Bonney 2015-04-17 22:15:45 +00:00 committed by Randy Mackay
parent 36b405fb0b
commit 03373d35c2
1 changed files with 8 additions and 2 deletions

View File

@ -13,8 +13,14 @@ elif [ -x /usr/bin/konsole ]; then
/usr/bin/konsole --hold -e $*
elif [ -x /usr/bin/gnome-terminal ]; then
/usr/bin/gnome-terminal -e "$*"
elif [ -n "$STY" ]; then
# We are running inside of screen, try to start it there
/usr/bin/screen -X screen -t $name $*
else
echo "ERROR: Please install xterm"
exit 1
filename="/tmp/$name.log"
echo "Window access not found, logging to $filename"
cmd="$1"
shift
( run_cmd.sh $cmd $* &>$filename < /dev/null ) &
fi
exit 0