LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 01-10-2005, 02:03 AM   #1
racer_mec
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


Hello,

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

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


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

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


I am giving the entire shell script down below


#!/bin/sh
# $Id: jspider.sh,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
JSPIDER_HOME=/home/tony/tcs/jspider/jspider
fi

echo JSPIDER_HOME=$JSPIDER_HOME
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, 02:43 AM   #2
mufy
Member
 
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 linuxquestions.org.

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

Regards,
Mufy
 
  


Reply


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 11:28 AM
g77 Fortran - run time error (fmt: read unexpected character) rajeshdorai Programming 1 08-16-2006 08:07 AM
line of programming that keeps giving a syntax error at end of input mshinska Programming 1 10-03-2005 09:49 PM
Error in partition. Unexpected Inconsistency, won't let me run fsck! mlsbraves Slackware 2 04-15-2005 10:03 PM
timidity.cfg syntax error in first line... Simon Bridge Linux - Software 0 04-25-2004 10:52 PM


All times are GMT -5. The time now is 11:51 AM.

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