Hi,

I'm trying to start a vnc server via an expect script which does a "su -
<another_username>".
It looks pretty simple, but although the vnc server starts it seems it does not
run execute xstartup properly and I get the grey background.
I do not think it is a problem with the xstartup script itself since when
execute the su command form a terminal everything works perfectly.

Here is roughly what I'm doing :

| #!/usr/local/bin/expect
|
| spawn su - $username -c "/path/to/vncserver"
| expect "Password: "
| send   "$password\r"
| expect eof { puts "Received EOF." }
| exit 0

Thanks for your help.

Sylvain
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to