Why Perl here ?

Al Piszcz 'peesh' apiszcz "at" vector2.mitre.org
Fri, 27 Mar 1998 12:19:33 +0000


PERL is available for most platforms VNC operates on, it is 
a very powerful addition to any UNIX machine.  If it does
not exist in your environment or organization I'd check with
the system administrator.

However a Shell startup option could probably be contributed ... if
you get something to operate.



> From owner-vnc-list "at" orl.co.uk Fri Mar 27 07:05:00 1998
> Date: Fri, 27 Mar 1998 11:35:45 +0100
> From: budzynsk "at" cclan.fuw.edu.pl (Robert Budzynski)
> To: alexandre.ferrieux "at" cnet.francetelecom.fr
> CC: vnc-list "at" orl.co.uk
> Subject: Re: Why Perl here ?
> 
> >>>>> "alex" == alexandre ferrieux <alexandre.ferrieux "at" cnet.francetelecom.fr> writes:
> 
>     alex> A naive question:
> 
>     alex> 	Why the !@#$%^ does the 'vncserver' script use Perl
>     alex> ???
> 
>     alex> What nifty constructs in Perl, missing in the Bourne shell,
>     alex> do you need to:
> 
>     alex> 	- set up a few env variables and options - check for
>     alex> broken PATHs - make sure the computer power is on (just
>     alex> kidding)
> 
>     alex> Of course, Xvnc can be used without it. But don't you think
>     alex> people who need it most deadly are those who don't have Perl
>     alex> ?
> 
>     alex> -Alex
> 
> 
> 
> Good question. I also had to install Xvnc on a machine that had no
> perl, and that I did not have the root password for.  Fortunately, in
> that case it took me only one day to get the admin to make perl
> available on the box (only required an extra nfs mount), but others
> may be less fortunate. 
> 
> I'm not very familiar with perl, but my guess is that it's the socket
> functions that are being used to check for availability of tcp
> ports. AFAIK nothing similar is easily available in
> {c,k,ba}sh. Although one could perhaps write a slightly less robust
> shell-script replacement for vncserver - I suppose it should be good
> enough to keep on trying to start Xvnc until successful, upping the
> display number by 1 after each failure, up to some reasonable number
> of attempts before giving up? Does anyone know better?
> 
> rjb
> 
> ######################################################################
> 
> Robert J. Budzynski <Robert "at" Budzynski.ddns.org>
> Physics Department Computer Center
> Warsaw University
> Warsaw, Poland
> Home page: <http://info.fuw.edu.pl/~budzynsk/home.html>
> 
> ######################################################################
> 
> 
-  ___________.___________________.___________________._______________________
- < Al Piszcz | apiszcz "at" mitre.org | MITRE Corporation | 703.883.7124/3308 FAX >