#!/usr/bin/expect
set PASS [lindex $argv 0]
spawn vncpasswd /root/.vnc/passwd
expect Password: { send $PASS; send "\r" }
expect Verify: { send $PASS; send "\r"}
expect eof exit 0
