Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-10-2005, 01:03 AM   #1
LQ Newbie
Registered: Dec 2004
Posts: 11

Rep: Reputation: 0
got a syntax error which shows unexpected end of line when tried to run a shell scrip


I have installed a 3rd party tool called jspider in redhat 8.When i tried to run the same using ./ i got a message like this

[root@siva bin]# ./
: bad interpreter: No such file or directory

Then i tried with using sh then also got an error message but this time a different is as follows and the important thing is there is no 16th line

[root@siva bin]# sh
JSpider startup script
: command not found line 16: syntax error: unexpected end of file

I am giving the entire shell script down below

# $Id:,v 1.3 2002/12/24 10:52:22 vanrogu Exp $
echo ------------------------------------------------------------
echo JSpider startup script

if [ ! -d "$JSPIDER_HOME" ]; then
echo JSPIDER_HOME does not exist as a valid directory : $JSPIDER_HOME
echo Defaulting to current directory

echo ------------------------------------------------------------

java -cp ../lib/jspider.jar -Djspider.home=$JSPIDER_HOME net.javacoding.jspider.JSpider $1 $2

i am a beginner .So please do reply
Old 01-10-2005, 01:43 AM   #2
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Rep: Reputation: 30
Things looked different when I ran the same in mine Siva. And yeah, welcome to

[mufeed@gateway shell]$ ./siva
JSpider startup script
JSPIDER_HOME does not exist as a valid directory :
Defaulting to current directory
Exception in thread "main" java.lang.NoClassDefFoundError: net/javacoding/jspide r/JSpider



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax error near unexpected token `fi' Warmduvet Programming 21 10-08-2013 10:28 AM
g77 Fortran - run time error (fmt: read unexpected character) rajeshdorai Programming 1 08-16-2006 07:07 AM
line of programming that keeps giving a syntax error at end of input mshinska Programming 1 10-03-2005 08:49 PM
Error in partition. Unexpected Inconsistency, won't let me run fsck! mlsbraves Slackware 2 04-15-2005 09:03 PM
timidity.cfg syntax error in first line... Simon Bridge Linux - Software 0 04-25-2004 09:52 PM

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration