java linux script
#!/bin/sh#check the to-be-expired client and send mail to notify them##add JAVA_HOMEexport JAVA_HOME=/apps/jdk1.5.0_18export CLASSPATH=$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH=$PATH:$JAVA_HOME/bin#add send mail variableexport LIB_JARS=/apps/sendNotificationMail/libexport CONFIG=/apps/sendNotificationMail/Configexport LOG4J_FILE=$CONFIG/log4j.propertiesexport SEND_MAIL_CLASSPATH=$LIB_JARS/mail.jar:$LIB_JARS/sendMail.jar:$LIB_JARS/ojdbc14.jar:$LIB_JARS/activation.jar:$LIB_JARS/commons-email-1.2.jar:$LIB_JARS/log4j-1.2.8.jar:$CONFIGecho $SEND_MAIL_CLASSPATHjava -classpath $SEND_MAIL_CLASSPATH -Dlog4j.configuration=file:$LOG4J_FILE -Xms512M -Xmx512M com.prft.dm.mail.Run
页:
[1]