Re: What development rpm am I missing?

2009-09-23 Thread Robert Moskowitz
Paul W. Frields wrote: On Wed, Sep 23, 2009 at 07:35:41AM -0400, Robert Moskowitz wrote: I have an AMAHI server (amahi.org) that runs on FC10. I am trying to execute a simple script that includes: function correct { echo echo 'Is this correct (1=Yes,0=No): ' read answer } correct But this

Re: What development rpm am I missing?

2009-09-23 Thread Paul W. Frields
On Wed, Sep 23, 2009 at 07:35:41AM -0400, Robert Moskowitz wrote: > I have an AMAHI server (amahi.org) that runs on FC10. > > I am trying to execute a simple script that includes: > > function correct { > echo > echo 'Is this correct (1=Yes,0=No): ' > read answer > } > correct > > But this fails wi

Re: What development rpm am I missing?

2009-09-23 Thread Craig White
On Wed, 2009-09-23 at 08:02 -0400, Robert Moskowitz wrote: > Mogens Kjaer wrote: > > On 09/23/2009 01:35 PM, Robert Moskowitz wrote: > >> '/test1: line 1: syntax error near unexpected token `{ > > > > Starting the script with > > > > #!/bin/bash > > > > might be a good idea. > > I used vi to inse

Re: What development rpm am I missing?

2009-09-23 Thread Robert Moskowitz
Mogens Kjaer wrote: On 09/23/2009 02:02 PM, Robert Moskowitz wrote: ^M The file is in dos format, with crlf line termination. Open the file in vi and do: :set ff=unix and save the file again. This file was created by pulling out part of a script that was failing by in gedit and 'cat >

Re: What development rpm am I missing?

2009-09-23 Thread Christopher K. Johnson
Robert Moskowitz wrote: Mogens Kjaer wrote: On 09/23/2009 01:35 PM, Robert Moskowitz wrote: '/test1: line 1: syntax error near unexpected token `{ Starting the script with #!/bin/bash might be a good idea. I used vi to insert this line and I get: ./test1 -bash: ./test1: /bin/bash^M: bad

Re: What development rpm am I missing?

2009-09-23 Thread Mogens Kjaer
On 09/23/2009 02:02 PM, Robert Moskowitz wrote: ^M The file is in dos format, with crlf line termination. Open the file in vi and do: :set ff=unix and save the file again. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 3

Re: What development rpm am I missing?

2009-09-23 Thread Robert Moskowitz
Mogens Kjaer wrote: On 09/23/2009 01:35 PM, Robert Moskowitz wrote: '/test1: line 1: syntax error near unexpected token `{ Starting the script with #!/bin/bash might be a good idea. I used vi to insert this line and I get: ./test1 -bash: ./test1: /bin/bash^M: bad interpreter: No such fil

Re: What development rpm am I missing?

2009-09-23 Thread Mogens Kjaer
On 09/23/2009 01:35 PM, Robert Moskowitz wrote: '/test1: line 1: syntax error near unexpected token `{ Starting the script with #!/bin/bash might be a good idea. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25,

What development rpm am I missing?

2009-09-23 Thread Robert Moskowitz
I have an AMAHI server (amahi.org) that runs on FC10. I am trying to execute a simple script that includes: function correct { echo echo 'Is this correct (1=Yes,0=No): ' read answer } correct But this fails with: ./test1 '/test1: line 1: syntax error near unexpected token `{ '/test1: line 1: `