[olug] EOF error

Aaron Grothe grothe at earthlink.net
Fri Sep 22 21:19:12 UTC 2000


Hi,

One way of getting rid of the additional lines is to just use head to write
out the lines you want.

# cd /etc/rc.d
# head --lines=155 < rc.firewall > rc.firewall.new
# cp rc.firewall > rc.firewall.old
# mv rc.firewall.new rc.firewall

Also, if you could e-mail an od -c dump of the last couple of lines of the
original files to the mailing list I'd be interested in seeing the control
sequence that is causing you the problems.  The easy way to do that is to
run the following commands

# cd /etc/rc.d
# tail rc.firewall.old | od -c > /tmp/firewall.dump

and if then you could e-mail the file firewall.dump to the list. I would be
interested in seeing t.

Regards,

Aaron
=-=-=
"The Journey is the Reward" - Old Zen Buddhist Saying

mesc wrote:

> I'm having a problem with my firewall script.It  doesn't prevent it
> from working  or starting it just gives this annoying error message at
> bootup>/etc/rc.d/rc.firewall: line  157:syntax error: unexpected end of
> file...the actual script ends at line 155 but 2 lines further on is a $
> character that I didn't write that must be causing the unexpected EOF
> error.But it can't be deleted.It doesn't show until I scroll past  it
> then the cursor just gets a tab space away from it (While trying to
> backspace it) when the cursor starts backspacing again on the right,on
> the same line.Without deleting the $ character (it just goes right past
> it)........"scratching head"I hope I explained it well enough to be
> understood.Anyone have any idea what's  going on?
>
>                 Thank you,Gary Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> For additional commands, e-mail: olug-help at bstc.net


---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list