Thread View: comp.sys.next.sysadmin
2 messages
2 total messages
Started by Michael S. Muegel
Wed, 26 Aug 1992 15:48
Perl use over NFS
Author: Michael S. Muegel
Date: Wed, 26 Aug 1992 15:48
Date: Wed, 26 Aug 1992 15:48
34 lines
1347 bytes
1347 bytes
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. -Mike -- -Michael S. Muegel <mmuegel@mot.com> UNIX Applications Startup Group Corporate Computer Services and Support Motorola, Inc.
Re: Perl use over NFS
Author: Larry Wall
Date: Thu, 27 Aug 1992 07:02
Date: Thu, 27 Aug 1992 07:02
50 lines
1967 bytes
1967 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads