I would prefer it if the semantics were the same as the legacy vncpasswd from TightVNC, whereby passing an argument of -f makes vncpasswd read the plain text password from stdin and output the encrypted password to stdout. I think that is ultimately more useful, since one could then use vncpasswd in any command chain.
I will modify your patch to do this if it sounds reasonable. On 7/8/10 1:22 PM, Antoine Martin wrote: > [snip] >>>> $ vncpasswd ARDpasswd >>>> Password: <type "mypasswd"> >>>> Verify: <type "mypasswd"> >>> The reason why I didn't want to use vncpasswd is that it is interactive, >>> are there any pure command line alternatives that I can use? >> >> I'm affraid it is currently impossible. However you might temporarily >> use the "passwdInput" patch from Fedora and pass password directly to >> vncviewer via pipe. > There is now (see patch attached). > > Allows us to specify the password on the vncpasswd command line. ie: > vncpasswd --password=MYPASSWORD ./password-file > > Tested against Apple's ARD and Xvnc, works for me. > > The patch is pretty ugly, done to minimize the number of line changed > rather than doing anything efficient. > What do you think? ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel