May 16, 2012

Using EOF in a shell script

Posted in Utility at 2:45 pm by alessiodini

Today i was writing a shell script. During this task i encountered a problem with EOF ( End Of File ).
After i found the cause and i’m still thinking to this , i did not know this info !
Follow an example here:

./ line 11: syntax error: unexpected end of file
root@server1 #

After i tried to don’t indent EOF… i did not know which was the cause of this problem.
So , the script changed in this:

root@server1 # ./
this is a test
root@server1 #

It worked !



  1. Tor Landeel said,

    Nonsense :/

    • alessiodini said,

      ehhee the same thing i thought !

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: