home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.sys.next.sysadmin
- Subject: Re: Perl use over NFS
- Message-ID: <1992Aug27.070250.5447@netlabs.com>
- Date: 27 Aug 92 07:02:50 GMT
- References: <1992Aug26.154829.18822@rtsg.mot.com>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 50
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <1992Aug26.154829.18822@rtsg.mot.com> mmuegel@mot.com writes:
- : When I try to run a Perl script that is set up correctly via the #! syntax
- : I get a "permission denied" error. Perl is mounted via NFS. Here is some
- : information:
- :
- : % head -1 format-prob
- : #!/usr/local/ustart/contrib/bin/perl
- :
- : % ls -las format-prob
- : 1 -rwxr-xr-x 1 mmuegel 204 Aug 26 10:07 format-prob
- :
- : % which perl
- : /usr/local/ustart/contrib/bin/perl
- :
- : % perl -v | head -5
- :
- : This is perl, version 4.0
- :
- : $RCSfile: perl.c,v $$Revision: 4.0.1.7 $$Date: 92/06/08 14:50:39 $
- : Patch level: 35
- :
- : % ./format-prob
- : ./format-prob: Permission denied.
- :
- : I have gotten this error when the Perl area is mounted from a Sparc and
- : a NeXT. When Perl is on a local drive it works fine.
- :
- : Any hints? I am pretty new to the NeXT world but not UNIX.
-
- Many Unixen have an arbitrary (ugh) limit of 32 chars on a #! line.
-
- Alternatives are to install a symlink from someplace with a shorter
- name to where it really is (installperl attempts to put one into /usr/bin),
- or if that's administratively unlikely, put some other program on the
- #! line that will start up perl for you:
-
- #!/bin/env perl
-
- or some variant of
-
- #!/bin/sh -- # really perl
-
- eval 'exec perl -S $0 ${$1+"$@"}'
- if $running_under_some_shell;
-
- But those both entail an extra process, which is a pity when #! is already
- implemented. Make the world a saner place and push for /usr/bin/perl.
-
- Larry Wall
- lwall@netlabs.com
-