Re: Running shell scripts from external media

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



> As 'root', when running a script resident on the external drive mounted at
> /media/disk I receive the following error:
> 
> /bin/sh: bad interpreter: Permission denied

Are you sure the script isn't in DOS format, with CRLF line endings?  If
so then the interpreter it's trying to run is actually /bin/sh^M (with
a control-M at the end).  Which is wrong :-)

Try running dos2unix on it and trying it again.

-- 

rgds
Stephen
_______________________________________________
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