Solved

Shell Script Woes

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 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

20 Experts available now in Live!

Get 1:1 Help Now