Michael Wechner wrote:
I try to import files via the command line:
sh xindice.sh import -c /db -f /home/michi/files
or
sh xindice.sh add_document -c /db -f /home/michi/files/file.xml
but receive the following error
: command not foundakarta-tomcat-4.1.24-LE-jdk14/webapps/xindice/WEB-INF/xindice.sh:
: command not foundakarta-tomcat-4.1.24-LE-jdk14/webapps/xindice/WEB-INF/xindice.sh:
: command not foundakarta-tomcat-4.1.24-LE-jdk14/webapps/xindice/WEB-INF/xindice.sh:
: command not foundakarta-tomcat-4.1.24-LE-jdk14/webapps/xindice/WEB-INF/xindice.sh:
/home/michi/build/jakarta-tomcat-4.1.24-LE-jdk14/webapps/xindice/WEB-INF/xindice.sh: line 12: syntax error near unexpecte' token `in
'home/michi/build/jakarta-tomcat-4.1.24-LE-jdk14/webapps/xindice/WEB-INF/xindice.sh: line 12: `case "`uname`" in
any idea what I might do wrong?
What line endings file has - dos or unix? Try dos2unix. You can also send a patch to build.xml if you know what's the problem.
Vadim
