home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / sysadmin / 4890 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.9 KB

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