How to open vnc viewer and login vnc with one command line

1

I download vnc viewer from here, i find it's a binary file, so my question is how to open vnc viewer and login vnc with one command line, for instance

ruby -e "puts (File.read 'path/to/my/passwd')"| ./VNC-Viewer-5.2.2-Linux-x64 --passwd

anyvoleki

Posted 2014-12-16T09:31:52.550

Reputation: 11

Please read Can I answer my own question?. Don't [edit] your question to add the answer.

– DavidPostill – 2014-12-16T10:08:13.817

Answers

0

I fix it with vncviewer -passwd ~/.vnc/passwd localhost:5901, ~/.vnc/passwd must be generated with vncpasswd

anyvoleki

Posted 2014-12-16T09:31:52.550

Reputation: 11