66f4ba40e8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
13 lines
377 B
Bash
Executable File
13 lines
377 B
Bash
Executable File
#!/bin/bash
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
myport=${rvid_vncdisplay#*:}
|
|
let myport=myport-5900;
|
|
export VNC_VIA_CMD='/usr/bin/ssh -o BatchMode=yes -f -L "$L":"$H":"$R" "$G" sleep 20'
|
|
(
|
|
flock 200
|
|
vncviewer :$myport -via $rvid_server AutoSelect=0 FullColor=1 >& /dev/null &
|
|
sleep 0.2
|
|
flock -u 200
|
|
) 200> /tmp/xcat/virtvnclock
|
|
|