Here is what I use.

su -l wxvnc -c "vncserver :1"

with wxvnc being my vnc user.

Edward Thompson wrote:
> 
> Under Linux, I would like to create a script that would start a vncserver
> when the system boots.
> 
> I assumed that the script would run as root, so I  tried:
> 
> su - 'username' vncserver
> 
> Hpwever I get:
> vncserver: line 29: syntax error near unexpected token `&S'
> vncserver: line 29: `&SanityCheck();'
> 
> Basically it is failing on first line of the perl script vncserver.  Not
> sure what I need to do.
> 
> Any hints?
> ---------------------------------------------------------------------
> 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
> ---------------------------------------------------------------------

-- 
Michael H. Collins              Admiral: Penguinista Navy International
http://www.linuxlink.com        Migration
Free Linux Email                http://www.78704.com
A great geek girl mp3           http://www.ccms.net/~mhtexcollins/mp3/
This Ain't California           http://geekaustin.com/
---------------------------------------------------------------------
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
---------------------------------------------------------------------

Reply via email to