PDA

View Full Version : [all variants] vncpasswd in a script?



bazzer
April 29th, 2008, 11:26 AM
Trying to set vncpasswd from a script, ie without user interaction. I've seen a clunky example here (http://www.usenet-forums.com/linux-networking/62766-help-automated-vnc-password-change.html) and it works if you call it from the prompt but I can't make that bit run as part of a bigger script, using 'source'.

The idea is that I can set the vnc password in a script, along with a load of other settings, so it's got to be 'non interactive'...

bazzer
June 9th, 2008, 11:37 AM
If anyone cares, I managed to do it with 'expect'. Quite odd watching it work, but it does the doo...