[pups] Installing begemot

Robin Birch robinb at ruffnready.co.uk
Fri Aug 13 17:15:51 AEST 2004


In message <200408122301.i7CN1MX01938 at opihi.ucsd.edu>, Carl Lowenstein 
<cdl at mpl.ucsd.edu> writes
>> Date: Thu, 12 Aug 2004 18:49:11 +0100
>> To: "Greg 'groggy' Lehey" <grog at lemis.com>
>> From: Robin Birch <robinb at ruffnready.co.uk>
>> 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


More information about the TUHS mailing list