16 lines
600 B
Bash
16 lines
600 B
Bash
#!/bin/ksh
|
|
THIS_PATH=`dirname $0`
|
|
. $THIS_PATH/setEnv.sh
|
|
|
|
SFTPD_PROPERTIES="${GNP_HOME}/properties/sftpd.properties"
|
|
CLASSPATH="${GNP_LIB_HOME}/sftpd.jar:${GNP_LIB_HOME}/log4j-1.2.16.jar:${GNP_LIB_HOME}/commons-logging-1.0.4.jar:${GNP_LIB_HOME}/jsch-0.1.54.jar:${GNP_HOME}/properties"
|
|
|
|
check_node=`$THIS_PATH/TestNodo.sh`
|
|
|
|
if [ $? -eq 0 ]
|
|
then
|
|
echo "Nodo abilitato ad eseguire lo script"
|
|
${JAVA_HOME}/bin/java -classpath $CLASSPATH -Dfile.encoding=UTF-8 -Dproperties_path="${SFTPD_PROPERTIES}" it.alescar.sftp.daemon.SFTPDaemon $1 $2
|
|
else
|
|
echo "(WARNING) Nodo non abilitato ad eseguire script"
|
|
fi |