faqts : Computers : Programming : Languages : PHP : Installation and Setup

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 9 people (67%) answered Yes
Recently 2 of 4 people (50%) answered Yes

Entry

Why can't I run the shell scripts under Red Hat V6.0?

Mar 23rd, 2000 15:20
Rob Garth, Leslie Hwang,


It could be a number of reason.
If the file isn't executable by the user who is running the script it
will not work. If it is not a secure script, which sould only be run by
an administrator, change the mode to 755.
'chmod 755 "script name"'
It could also be the shell the script is trying to use.
The first line of a script contains the shell interpreter which is being
invoked. It usualy says something like '#!/usr/bin/sh'
I can pretty much guarentee that /usr/bin/sh should exist, but check, it
maya be ins a different place - or the shell the script is invoking may
not be present.
Check the loactions of all the programs which are called on the script.
Also propgrams may not be explicitly pathed, inlcude the whole path to
programs you call.