Solved

Shell Script Woes

Posted on 1997-04-24
1
223 Views
Last Modified: 2013-12-15
I have just updated to the new version of slackware and I have noticed some weird things with my shell scripts and cgi programs. Some will execute from the web server but the
rest just crash.

From the command line I can type:
hummer:/web/cgi-bin# lbn.pl
bash: lbn.pl: command not found

and then type:
hummer:/web/cgi-bin# perl lbn.pl
and the progarm executes just fine. I have been looking at
the #! directives and they refer to the right place (they
work when the apache web server calls it). There are plain
bash scripts that have the same problem (they have no #!)

Any one have any ideas?
0
Comment
Question by:poorguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
mlev earned 100 total points
ID: 1627240
Is "." in your path?
If not, either add it there, or type
hummer:/web/cgi-bin# ./lbn.pl

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question