*BSD News Article 94103


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!nntp.ksu.edu!news.kanren.net!usenet
From: "Cecil O. Stoll" <cstoll@sccc.cc.ks.us>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Executing shell scripts.
Date: 21 Apr 1997 21:11:52 GMT
Organization: Seward County Community College
Lines: 12
Message-ID: <01bc4e99$04988b00$cac2f8c6@cecilstoll.sccc.cc.ks.us>
NNTP-Posting-Host: 198.248.194.202
X-Newsreader: Microsoft Internet News 4.70.1155
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39498

I am having trouble executing shell scripts from the command line with
FreeBSD 2.1.5.  I have changed the mode of the scripts they are readable
and executable.  After searching the mail list archives @www.freebsd.org, I
added the "#!/bin/sh" line at the top of the script but this didn't help. 
The scripts can be executed by typing "sh scriptname" or "bash scriptname"
or even "csh scriptname".  I obviously missed something very important
here.  Any help and information will be appreciated.

Thank you in advance.

Cecil Stoll
SCCC