On Fri, 1 Feb 2002, LuisMi wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I was editing a file called firewall2002.sh over my ssh connection when > the connection crash :-( > > I enter again into my computer and start again to finish my work. > > Now, when I try to execute that file I always read... > > ./firewall2002a.sh: line 1050: syntax error: unexpected end of file > > How can I resolve that? > > Thanks >
LuisMi, My guess is that the script was hosed when you were editing it and the connection was dropped. You'll have to add something like this to the header of the script: #!/bin/sh -x This will display a lot of comments as the script runs which should help you figure out what is wrong with it. In any case, whenever I encountered this error with my own scripts it was usually because I forgot to add the closing brackets in a while or if loop or something like that. It seems to be due to syntax errors most of the time. Other than that, you may want to try editing the file in vim again to see if you are welcome with an error warning that you should run vim with the "-r" option to reopen the previous session that crashed. I believe you can also run 'vim -r' at the prompt to see a list of such files, but am not sure now. -- Nitebirdz Mozilla--> http://www.mozilla.org/ Linux XFS--> http://oss.sgi.com/projects/xfs/ _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list