Unix Shell - Re: How to setup a simple shell script? "bad interpreter: No such file or directo

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > December 2007 > Re: How to setup a simple shell script? "bad interpreter: No such file or directo





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How to setup a simple shell script? "bad interpreter: No such file or directo
Joachim Schmitz

2007-12-28, 7:31 am

"Old Man" <reply2forum@newgroup.com> schrieb im Newsbeitrag
news:Q9_cj.36064$gF4.519@trnddc02...
>
> "Matthew Lincoln" <mlincoln100@hotmail.com> wrote in message
> news:475d485a$0$13120$9b4e6d93@newsspool
2.arcor-online.net...
>
> I just copied a file from Windows to Linux, then ran it. The same
> error was returned. I simply forgot to open the script with VI,
> enter ":set ff=unix", then close it. Ran fine.
>
> As an FYI, when I open the file with VI/VIM, it does not show the
> carriage return. When searching, it won't find it, but they are there.

standard vi shows them as ^M, vim does not (nor does the Linux vi, which
actually is vim), but it shows a "[dos]" in the bottom left corner (the
status line) directly after opening the file.
Also a ":set ff" shows

Bye, Jojo


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com