From 85943215cb244bcc045c679570b59918f5757dce Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 29 Nov 2012 03:06:13 +0000 Subject: [PATCH] defect 3186: check the existence of vncviewer git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14469 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/share/xcat/rvid/rvid.kvm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-client/share/xcat/rvid/rvid.kvm b/xCAT-client/share/xcat/rvid/rvid.kvm index 8c41272c1..951f648dc 100755 --- a/xCAT-client/share/xcat/rvid/rvid.kvm +++ b/xCAT-client/share/xcat/rvid/rvid.kvm @@ -9,6 +9,10 @@ if [ ! -z "$rvid_virturi" -a ! -z "$rvid_virtname" ]; then fi myport=${rvid_vidport#*:} if [ $rvid_vidproto = "vnc" ];then + if [ ! -x "/usr/bin/vncviewer" ]; then + echo "Error: vncviewer could not be found and needed for this VM." >&2; + exit 1 + fi let myport=myport-5900; export VNC_VIA_CMD='/usr/bin/ssh -o BatchMode=yes -f -L "$L":"$H":"$R" "$G" sleep 20' (