LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   line 313: syntax error: unexpected end of file (https://www.linuxquestions.org/questions/linux-newbie-8/line-313-syntax-error-unexpected-end-of-file-805417/)

bes 05-01-2010 09:50 PM

line 313: syntax error: unexpected end of file
 
hello I have this problen can someone help me te slov this problem.

if [ -f /usr/sbin/inetd ] ;
then
killall inetd
/usr/sbin/inetd
else
killall -9 xinetd
/usr/sbin/xinetd -reuse -pidfile /var/run/xinetd.pid
fi


line 313: syntax error: unexpected end of file

catkin 05-02-2010 03:08 AM

Hello bes and welcome to LQ :)

Please start your own thread. We don't like to add to old threads that are finished.

Tinkster 05-02-2010 03:25 AM

I split your post out of the dead thread into a thread of its own.

grail 05-02-2010 03:32 AM

I am curious how we have an error at line 313 but you have shown us 8 lines of code??
I would guess that somewhere within the 313 lines you have not terminated a command and hence it has got to the end
of the file and not found what it was looking for, hence the error.

On another note it might be interesting to point out that you should rethink the "if" you have shown as it would seem to have obvious issues,
but is not related to your problem.


All times are GMT -5. The time now is 05:25 AM.