mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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 $*
|
/usr/bin/konsole --hold -e $*
|
||||||
elif [ -x /usr/bin/gnome-terminal ]; then
|
elif [ -x /usr/bin/gnome-terminal ]; then
|
||||||
/usr/bin/gnome-terminal -e "$*"
|
/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
|
else
|
||||||
echo "ERROR: Please install xterm"
|
filename="/tmp/$name.log"
|
||||||
exit 1
|
echo "Window access not found, logging to $filename"
|
||||||
|
cmd="$1"
|
||||||
|
shift
|
||||||
|
( run_cmd.sh $cmd $* &>$filename < /dev/null ) &
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user