How to provide password to vncviewer inside an application
or script?
"Beerse, Corné"
c.beerse@torex-hiscom.nl
Mon Nov 4 09:09:00 2002
> -----Original Message-----
> From: Shin Lee [mailto:shinlee28@mail.usa.com]
>
> Does any of you know how to pass a plain-text password to
> vncviewer without using 'expect'? I try to incorporate
> vncviewer inside an existing application. Currently, the
> application has a textbox for user to entering the password
> and then I grab the password after the user clicks a button.
> Once I have the password, I try to pass it to the vncviewer
> using stdin but the vncviewer doesn't like it. Does anyone
> know why? Any help would be appreciated!
>
Depending on the platform of your viewer, you have some options:
- Create a *.vnc file from a running viewer. It's an editable file. Now
start new viewers with `vncviewer /config configfile.vnc`
- Use the -passwd option to vncviewer, read the docs on how to do that.
- remove the password from the server, this also removes the password
question from the viewer.
Success
CBee