🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.uu.comp.os.linux.questions
Article #158

Re: Can Red Hat Linux run Shell Script?

#158
From: kf
Date: Sat, 21 Aug 1999 00:00
26 lines
2614 bytes
Dominic Tse wrote:
> I'm a newie of Linux. As I am currently studying Systems Programming (Unix),
> I have installed Linux on my PC to practice and familiar with it. I am
> currently trying to run C shell script under the Linux. It seems to me that
> it doesn't like to execute the script although I've done "chmod u+x
> script_program". The error message is something like "command not found".
> Can anyone please give me some ideas?

I'm guessing that you haven't included the path to the script.  For example,
if your script is called "boink" and is in the subdirectory "/usr/local/bin",
then you could execute it with the command "/usr/local/bin/boink".

Alternatively, put your script in a subdirectory which is in the already existing
path (do "env | grep -i path" to find out) or include the directory in which your
script resides in the path; for example, if you have the script in your home 
directory, put the following in your ".profile" file: "$PATH=$PATH:$HOME".

Best luck,
kf
-- 

     -------------------------------------------------------------------
     If it won't run gnu/Linux, your hardware's not upwardly compatible.
			    ken@cleveland.lug.net
     -------------------------------------------------------------------
###
Technical Details
Message-ID: <37BED51B.2C85321B@cleveland.lug.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7plmre$8e1$1@toto.tig.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fe2cf,d9db4d784d4d5b62
X-Google-Attributes: gidfe2cf,public
X-Google-Thread: 10d8ad,d9db4d784d4d5b62
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: 1101c9,d9db4d784d4d5b62
X-Google-Attributes: gid1101c9,public
X-Google-Thread: f9b51,d9db4d784d4d5b62
X-Google-Attributes: gidf9b51,public
X-Google-Thread: fcfb9,d9db4d784d4d5b62
X-Google-Attributes: gidfcfb9,public
X-Google-Thread: 102983,d9db4d784d4d5b62
X-Google-Attributes: gid102983,public
X-Google-Thread: 10a997,d9db4d784d4d5b62
X-Google-Attributes: gid10a997,public
From: kf <ken@cleveland.lug.net>
Subject: Re: Can Red Hat Linux run Shell Script?
Date: 1999/08/21
Message-ID: <37BED51B.2C85321B@cleveland.lug.net>
X-Deja-AN: 515531640
Content-Transfer-Encoding: 7bit
References: <7plmre$8e1$1@toto.tig.com.au>
To: Dominic Tse <dominictse@netscape.net>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@tracy.nacs.net
X-Trace: tracy.nacs.net 935253949 23859 207.166.194.57 (21 Aug 1999 16:45:49 GMT)
Organization: New Age Consulting Service Inc., Cleveland, OH, USA
Mime-Version: 1.0
NNTP-Posting-Date: 21 Aug 1999 16:45:49 GMT
Newsgroups: alt.uu.comp.os.linux.questions,at.linux,aus.computers.linux,comp.os.linux.advocacy,comp.os.linux.setup,linux.redhat,uk.comp.os.linux