Solved

Shell Script Woes

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PC upgrade to Linux Mint 7 70
video edge NVR Device Discovery Problem 4 34
CentOS 7 Installation 7 60
expectj telnet failing 5 26
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now