Solved

Shell Script Woes

Posted on 1997-04-24
1
224 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

Industry Leaders: 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

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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

695 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