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
Barry Margolin

2007-12-11, 1:37 am

In article <475d485a$0$13120$9b4e6d93@newsspool2.arcor-online.net>,
mlincoln100@hotmail.com (Matthew Lincoln) wrote:

> I wanted to setup a simple shell script "test3" with some commands inside.
>
> I started the script with
>
> #!/bin/bash
> ....
>
> When I call the script I got the error:
>
> : bad interpreter: No such file or directorybin/bash
>
> Hmm, why is there no such file ?'


Did you write the script on a Windows box and then copy it to Unix?
I'll bet it has Windows CRLF line terminators.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com