(1) can not "set debug on":
$ ksh run.sh
[ Slide ] $ set debug on
Fatal Error: unexpected token: set
line 1: unexpected token: set
at org.apache.webdav.cmd.ClientParser.commands(ClientParser.java:227)
at org.apache.webdav.cmd.Client.run(Client.java:159)
at org.apache.webdav.cmd.Slide.main(Slide.java:124)
Please, email to [EMAIL PROTECTED]
$ ksh run.sh
[ Slide ] $ open http://localhost:8080/
connect http://localhost:8080/
[LOCALHOST] / $ set debug on
$
/* I am out! */
The correct behaviour would be (per jakarta-slide-1.0.16 version):
$ ./run.sh
[ Slide ] $ set debug on
Not connected yet.
[ Slide ] $ open http://localhost:8080/
[LOCALHOST] / $ set debug on
The debug flag is on.
[LOCALHOST] / $
(2) Incorrect specification of slide-client.jar:
"${SLIDE_HOME}/lib/slide-client.jar" should be changed to
"${SLIDE_HOME}/client/lib/slide-client.jar".
and "==" is not traditional Borne shell syntax (it is Korn shell
probally POSIX shell syntax):
$ ./run.sh
./run.sh: test: unknown operator ==
The following shell wrapper code is more generic and more correct:
--
#!/bin/ksh
[[ $0 == /* ]] || exec $(pwd -P)/$0 "$@"
[[ -z "${SLIDE_HOME}" ]] && {
_SLIDE_HOME=${0%%/client/*}
if [[ -f $_SLIDE_HOME/client/lib/slide-client.jar ]]; then
SLIDE_HOME=$_SLIDE_HOME
else
echo "Unable to determine the value of SLIDE_HOME"
exit 1
fi
}
...
--
Michael Wang
http://www.unixlabplus.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>