mirror of https://github.com/ArduPilot/ardupilot
AutoTest: Add ability to run AC3.2.1 in screen
This commit is contained in:
parent
36b405fb0b
commit
03373d35c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue