[colug-432] Script basic

William Yang wyang at gcfn.net
Wed May 13 14:01:23 EDT 2015


DEBUGGING TOOL:

echo $PATH | tr \: \\012 | egrep "^(\.|`pwd`)" || echo "path problem"






On 05/13/2015 01:53 PM, Steve VanSlyck 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
> 


-- 
William Yang
wyang at gcfn.net


More information about the colug-432 mailing list