From mboxrd@z Thu Jan 1 00:00:00 1970 From: cdl@mpl.ucsd.edu (Carl Lowenstein) Date: Thu, 12 Aug 2004 16:01:22 -0700 (PDT) Subject: [pups] Installing begemot Message-ID: <200408122301.i7CN1MX01938@opihi.ucsd.edu> > Date: Thu, 12 Aug 2004 18:49:11 +0100 > To: "Greg 'groggy' Lehey" > From: Robin Birch > Subject: Re: [pups] Installing begemot > I have a different problem as well. There is something broken in the > configuration of this computer!!!!! If I execute a shell file by going > /bin/sh filename then it works ok but if I try running a shell script > with #!/bin/sh in the first line I get a bad permission error. This is > preventing me from running make scripts and all sorts of things. Any > ideas? Yes. See the following transcript of a session. I created a small script named "bad" which just does "date" to show that it worked. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - iota: try 1107$ ls -l bad -rwxrwxr-x 1 cdl cdl 16 Aug 12 15:56 bad* iota: try 1108$ /bin/sh bad Thu Aug 12 15:57:37 PDT 2004 iota: try 1109$ ./bad : bad interpreter: No such file or directory iota: try 1110$ cat bad #!/bin/sh date iota: try 1111$ od -c bad 0000000 # ! / b i n / s h \r \n d a t e \n 0000020 iota: try 1112$ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Note that there is a '\r' character at the end of the #! line. carl -- carl lowenstein marine physical lab u.c. san diego clowenst at ucsd.edu