2
I am trying to set up davmail on text based Ubuntu to run in server mode and am following the instructions here, but when I try to run the line
nohup davmail.sh davmail.properties &
I get the message
nohup: failed to run command 'davmail.sh': No such file or directory
The davmail.sh
script is as follows:
#!/bin/sh
# Ubuntu setup instructions :
# install java :
# sudo apt-get install default-jre
# launch davmail
BASE=`dirname $0`
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
I don't know which file(s) it is referring to when it says No such file or directory
. It seems to me that everything should be there. I am wondering if I am missing some package or something, or if the script really is just trying to reference some file that isn't there. I am pretty new to Linux, so any help here would be greatly appreciated! Here is the tree
of the directory the script resides in:
.
├── davmail-4.8.0-2479.zip
├── davmail.jar
├── davmail.log
├── davmail.properties
├── davmail.sh
├── lib
│ ├── activation-1.1.1.jar
│ ├── commons-codec-1.3.jar
│ ├── commons-collections-3.1.jar
│ ├── commons-httpclient-3.1.jar
│ ├── commons-logging-1.0.4.jar
│ ├── htmlcleaner-2.2.jar
│ ├── jackrabbit-webdav-2.4.3.jar
│ ├── jcharset-1.3.jar
│ ├── jcifs-1.3.14.jar
│ ├── jdom-1.0.jar
│ ├── log4j-1.2.16.jar
│ ├── mail-1.4.3.jar
│ ├── slf4j-api-1.3.1.jar
│ ├── slf4j-log4j12-1.3.1.jar
│ ├── stax2-api-3.1.1.jar
│ ├── stax-api-1.0.1.jar
│ ├── woodstox-core-asl-4.1.2.jar
│ └── xercesImpl-2.8.1.jar
└── nohup.out