[colug-432] Script basic

Steve VanSlyck s.vanslyck at postpro.net
Wed May 13 14:05:34 EDT 2015


Aaron, that got its attention. Could you explain why, that is what it
meant by /root not being in my path?

*[root at vslaw2 ~]# ls* *anaconda-ks.cfg install.log install.log.syslog
server_setup.sh*

Anyway, on running the script that way, i.e., *./server_setup.sh*, I saw
a different error:

*[root at vslaw2 ~]# ./server_setup.sh* *-bash: ./server_setup.sh:
/bin/bash^M: bad interpreter: No such file or directory*

Bill, result of your suggestion is below. I don't know what it
means though.

*[root at vslaw2 ~]# echo $PATH | tr \: \\012 | egrep "^(\.|`pwd`)" || echo
"path problem"** * */root/bin** * *[root at vslaw2 ~]#*

On Wed, May 13, 2015, at 13:56, Aaron Howard wrote:
> /root is not in your path.


> Try ./server_setup.sh


> On May 13, 2015 1:55 PM, "Steve VanSlyck"
> <s.vanslyck at postpro.net> wrote:
>> __
>> I have a script. The first line is
>>
>> *#!/bin/bash*
>>
>> When I run the script, I get a command not found error:
>>
>> *[root at vslaw2 ~]# server_setup.sh* *-bash: server_setup.sh: command
>> not found*
>>
>> I see bash at /bin . . . *[root at vslaw2 ~]# ls -lsap /bin/bash* *884
>> -rwxr-xr-x 1 root root 904872 Oct 16 2014 /bin/bash*
>>
>> . . . and my script appears to have the correct permissions
>>   *[root at vslaw2 ~]# ls -lsap server_setup.sh* *8 -rwxr-xr-x 1 root
>>   root 4232 May 13 13:40 server_setup.sh*
>>
>> Anyone have an idea what I'm doing wrong?
>>
>>
>> (And by the way I seriously appreciate all the help!)
>>
>>
>> Steve
>>
>> _______________________________________________
>> colug-432 mailing list colug-432 at colug.net
>> http://lists.colug.net/mailman/listinfo/colug-432
>>
> _________________________________________________
> colug-432 mailing list colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20150513/f28e6fff/attachment.html 


More information about the colug-432 mailing list