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
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
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
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 >
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
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
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
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,
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: `