From mboxrd@z Thu Jan 1 00:00:00 1970 From: robinb@ruffnready.co.uk (Robin Birch) Date: Fri, 13 Aug 2004 08:15:51 +0100 Subject: [pups] Installing begemot In-Reply-To: <200408122301.i7CN1MX01938@opihi.ucsd.edu> References: <200408122301.i7CN1MX01938@opihi.ucsd.edu> Message-ID: In message <200408122301.i7CN1MX01938 at opihi.ucsd.edu>, Carl Lowenstein writes >> 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 Ahhhhhhhhhhhh :-) Well done, I'll try sorting this out at work. I feel like a bulk tr script coming on. Robin -- Robin Birch