enexpected EOF problem

2000-06-10 Thread Pollywog
Although I have only used vi to edit a file, I keep getting this when I 
execute it:

/etc/iptables.sh: line 247: syntax error: unexpected end of file     

I don't see anything there that could be causing the problem.
Is there a way to see and remove whatever character is doing this?

thanks

--
Andrew
 



Re: enexpected EOF problem

2000-06-10 Thread Tom Furie
On Sat, Jun 10, 2000 at 03:53:31PM +, Pollywog wrote:
 Although I have only used vi to edit a file, I keep getting this when I 
 execute it:
 
 /etc/iptables.sh: line 247: syntax error: unexpected end of file     
Some pieces of software expect a linefeed on the last line and break if
there isn't one there. That might be what's happening, usually safest to
always make sure you have a blank line at the end of the file.

If that's not the problem then you could start vi with the -b option,
that should show any non-printable characters in the file (I think).

Cheers,
Tom

-- 
Class, that's the only thing that counts in life.  Class.
Without class and style, a man's a bum; he might as well be dead.
-- Bugsy Siegel


pgpc1TyUYRbO9.pgp
Description: PGP signature


Re: enexpected EOF problem

2000-06-10 Thread Stelios Bounanos
In message [EMAIL PROTECTED] , 
Pollywog [EMAIL PROTECTED]  was rumoured to have said about 
`` enexpected EOF problem '': 

 Although I have only used vi to edit a file, I keep getting this when I 
 execute it:
 
 /etc/iptables.sh: line 247: syntax error: unexpected end of file     
 
 I don't see anything there that could be causing the problem.
 Is there a way to see and remove whatever character is doing this?
 

Sounds like a missing keyword (fi? done?). Look harder :)

 thanks
 
 --
 Andrew