Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 12th, 2003, 07:38 PM
tjanzer tjanzer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 tjanzer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down bash doesn't recognize shebang

I have a server on my internal network running Red Hat Linux 8.
I intend to use this for web development and development of Perl scripts (CGI and other) for my clients. The problem is this:

The (default) bash shell does not seem to recognize the shebang line at top of my Perl programs (#!/usr/bin/perl). I have confirmed (using which) that I have the correct path to Perl and Perl is in my path.

I am able to execute Perl programs with a command such as:
perl whatever.pl so I know that I have the permissions right.

I believe this is a shell problem, and please correct me if I am wrong. I don't know what version of the bsh shell I am using, nor do I know how to determine this.

I am an experienced user of the korn shell in other environments and would gladly switch back to korn if it was available. Note, of course, that I say user. I am, by no means a system administrator (in case you haven't already figured this out).

Perhaps an upgrade to bsh is the answer? If so, please tell me where I can get this and how to install it.

Thank you for your patience and assistance.

Reply With Quote
  #2  
Old March 13th, 2003, 02:50 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
is perl really installed in /usr/bin? - what is the output of "which perl"?

if you want the korn shell back, install it. i never used redhat, so i cannot tell you where it is located, but in doubt get it from their webserver. Then edit /etc/passwd to replace your default shell with ksh.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > bash doesn't recognize shebang


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway