From 1beffc79d068d472fb604b9efc13d0eb0489bd9b Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 31 Mar 2011 20:34:49 +0200 Subject: removed sessionID stuff, appended directly by the pbs now --- src/testApp.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/testApp.sh') diff --git a/src/testApp.sh b/src/testApp.sh index 0ae691e..9242688 100755 --- a/src/testApp.sh +++ b/src/testApp.sh @@ -5,21 +5,28 @@ # -h, --help prints help # -D , --debug= sets debug level [0,1] # -u , --url= sets URL to load -# -d , --download= sets download directory (absolute) -# -c , --config= sets path to config file (absolute) +# -d , --download= sets download director +# -c , --config= sets path to config file # -t , --trigger= sets path to file triggering URL load # -s , --serial= sets path to serial number file # # Note: all path are expected to be absolute. -# + +# clean /tmp/fbgui rm -rf /tmp/fbgui + +# path to script (including script name) script_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" -# to get the path only - not the script name - add + +# to get the path only: use dirname which strips the filename from a path working_path=`dirname "$script_path"` + +# construct unique display_id based on user, needed for multi-user qvfb usage display_id=$(grep -n $(whoami) /etc/passwd| head -n 1|awk -F : '{print $1}') # Start QT's virtual framebuffer with proper display_id /usr/local/Trolltech/Qt-4.7.2/bin/qvfb -width 1024 -height 768 -qwsdisplay :$display_id & +# quick sleep to wait for qvfb loading sleep 0.2 # Start fbgui connecting to QVFb with display_id from above. $working_path/fbgui -display QVFb:$display_id $@ -- cgit v1.2.3-55-g7522