The Windows implementation of echo is fairly broken and treats quotes literally. If the password doesn't contain any special characters (such as &, ^, etc.), then you should be able to remove the quotes from the below and make it work. Otherwise, the only way I know to do it is to create a temp file. Note that when you're using echo on Windows, the trailing space is also taken literally, so you'd need to do
echo password|vncviewer -autopass -user -username localhost:1 On 6/15/12 2:40 AM, James Wettenhall wrote: > Hi, > > I'm calling TurboVNC's vncviewer from a script (which aims to be > cross-platform), and I'm trying to pass in a username and password > automatically. Our TurboVNC server only allows Unix authentication, not > standard VNC authentication. > > The following works for me on Mac OS X (after setting up an SSH tunnel using > local port 5901) : > > echo "password" | /opt/TurboVNC/bin/vncviewer -user username -autopass > localhost:1 > > But when I try this on Windows, (with the correct path to vncviewer.exe), I > get an "Authentication failure" alert message box. When I press OK, I get a > second "Authentication failure" alert message box. After I press OK the > second time, I get an "Empty password" alert message box. > > Does anyone have a working example of using the "autopass" option in Windows? > > Regards, > James > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > VirtualGL-Users mailing list > VirtualGL-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtualgl-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ VirtualGL-Users mailing list VirtualGL-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtualgl-users