I am (still) setting up a Linux system to host a bunch of VNC sessions.
This will probably be implemented on many systems, so I very much want to
get it right: to make it smooth, robust, and maintainable.
Today's challenge is vncpasswd.
We have a C program that maintains users. It calls useradd, passwd,
smbpasswd, creates login scripts -- everything necessary to create a fully
functional user profile on Linux and in our application database.
I need to incorporate vncpasswd into this program. But, unlike passwd and
smbpasswd, vncpasswd does not seem to accept input from stdin. I looked at
the source code (Notice: I am *NOT* the world's smartest C programmer) and
it seems to call getpass(). I looked at the man page for getpass() and it
seems able to accept input from stdin. But many different variations of
this (at the command line) utterly fail to work:
echo -e "newpass\nnewpass" | vncpasswd
It still prompts for the password, twice.
Any suggestions?
Lee Allen
Leadtec Systems, Inc.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------