Give vncviewer an extended period of time to get around to reading the password file before cleaning it up

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15101 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-02-07 20:55:17 +00:00
parent bb90fdf022
commit 509934b9d5

View File

@ -20,7 +20,7 @@ if [ $rvid_vidproto = "vnc" ];then
echo -e "$rvid_password\n$rvid_password"|vncpasswd /tmp/rvidpass.$$ > /dev/null
#echo $rvid_password|vncviewer :$myport -via $rvid_server AutoSelect=0 FullColor=1 passwdInput=1 >& /dev/null &
vncviewer $rvid_server:$myport AutoSelect=0 FullColor=1 passwd=/tmp/rvidpass.$$ >& /dev/null &
sleep 0.4
sleep 2.0
flock -u 200
rm /tmp/rvidpass.$$
) 200> /tmp/xcat/virtvnclock