Bug 9310

Summary: " #! /usr/bin/perl " FAILS (take any interpreter for the perl location)
Product: [Retired] Red Hat Linux Reporter: hyperbyte
Component: basesystemAssignee: Bill Nottingham <notting>
Status: CLOSED WORKSFORME QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-16 15:08:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hyperbyte 2000-02-10 17:01:41 UTC
HI,
I'm a newbie to linux, and so I may perhaps make a stupid mistake, but...

I read that if I add "#! /usr/bin/perl" to the top of a perl script (or
any script if it just points to the script interpreter), and if I "chmod
+x" it, that it will be executable, and will automatically run the perl
interpreter if i execute it.

It does not work, and I think it is fairly important. I already checked if
it points to the perl-path, and the scripts work if i do "perl [script]"

but when I just execute the script i get "command not found" or something
like that.

PLEASE help me!

Thanx in advance,
Peter Martijn Kuipers

Comment 1 Bill Nottingham 2000-02-10 19:36:59 UTC
I can't reproduce this here; perl scripts seem to run OK.

What does rpm -V perl say?

Comment 2 Bruce Wayne 2000-02-14 18:50:59 UTC
Is the "#!/usr/bin/perl" line the very first line of your file.
It must be the first line.