[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

Shell Script Woes

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
poorguy
Asked:
poorguy
1 Solution
 
mlevCommented:
Is "." in your path?
If not, either add it there, or type
hummer:/web/cgi-bin# ./lbn.pl

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now