I have an issue with launching vncserver on my new slackware machine, and I was wondering if anyone has any ideas. In my /etc/rc.d/rc.local file, I have added the following:
sudo -s -u fahrenba /usr/local/bin/vncserver
the file vncserver is a perl script.
Now, if I execute the script vncserver while logged in as fahrenba, it works. But through sudo, it almost seems like perl is not set up correctly... which sounds odd.
Essentially, the first real line of perl code is a subroutine call "&SanityCheck();", and I get an error, not that the system is insane, but that there was a syntax error... which doesn't make any sense to me at all.
Does anyone have any suggestions?
Thanks!