bash file direct execution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



What about force re-installing (replacing) bash & coreutils rpms??
Also, Try switching to runlevel 1 & re-run the script, if it works try 
replacing bash_profile,  /etc/bashrc and (or) ~/.bashrc from the good system

I hope this will help

----- Original Message ----- 
From: "dan1" <dan1@xxxxxxxxxxxx>
To: "CentOS mailing list" <centos@xxxxxxxxxx>
Sent: Tuesday, August 02, 2005 11:48 AM
Subject: Re:  bash file direct execution


> Hello all.
>
> To continue with the problem I am facing, I have some news..
>
> When I delete the line #!/bin/sh then the script works perfectly. When I 
> put it again then the problem occurs again.
> So the script just containing 'echo test' just works fine, but the script:
> #!/bin/sh
> echo test
>
> doesn't work (except when put in the /root directory) ... and this is true 
> for all other scripts.
>
> So the question is: does anybody know what program is in charge of parsing 
> that '#!/bin/sh' information, which apparently makes an error in the 
> parsing ?
> Is there any linux guru that would know of it ?
>
> Thanks,
> Daniel
>
>
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
>
> 


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux