[linux-help] Re: program won't execute.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I think you nailed it with th dos/unix cr/lf issue. if I cat the file and paste
it into a new vi window that script now runs. Is there a utility that will do
this for other files without pasting?
Thanks for the help
Mark
Carl D Cravens wrote:
> On Mon, 7 Aug 2000, mjacobs wrote:
>
> > root@hal:/usr/local/httpd/htdocs/mh/bin > ./configure
> > bash: ./configure: No such file or directory
>
> This isn't bash saying it can't find configure, it's bash saying that
> configure executed a command that generated an error of "No such file or
> directory". You script is executing, but it has a bug.
>
> Generally, you get this error, it means you're using a #! construct (like
> #!/bin/sh) and bash can't find whatever program you've told it to
> use. But you say you're using #!/bin/sh and /bin/sh exists... make sure
> there aren't any typos. Delete the line and retype it to eliminate hidden
> characters. (If the script came from a DOS environment (like when my wife
> edits files from her Windows box using Samba) and there's a CRLF on the
> end of the line, bash is looking to execute /bin/sh<CR>.)
>
> If the first command after that is 'echo', make sure that echo is in the
> path or you indicate the full path
>
> --
> Carl D Cravens (raven@xxxxxxxxxxx)
> BASIC programmers never die, they GOSUB without RETURN.
>
> -- This is the linux-help@xxxxxxxxx list. To unsubscribe,
> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
|
|