bin bash JAVA_HOME usr java j2sdk1 2_14 export JAVA_HOME PATH PATH HOM

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
JAVA_HOME=/usr/java/j2sdk1.4.2_14
export JAVA_HOME
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export PATH
export CLASSPATH=/usr/moomoo/domains/moomoo.co.il/ROOT/WEB-INF/classes:/usr/tomcat/lib/apps/mail.jar:/usr/tomcat/lib/apps/activation.jar
echo "Starting programs at: "
date
java com.IDC.Utils.StaticHTMLGenerator "http://192.168.4.161/servlet/com.dic.users.site.reloadUserOnlineList" "/usr/moomoo/domains/moomoo.co.il/ROOT/jsp/moomoo/users/club/usersOnline.txt" "UTF-8" &
echo kill -9 $! | at now + 5min
java com.IDC.Utils.StaticHTMLGenerator "http://192.168.4.161/servlet/com.dic.users.site.club.servletGetUsers?filter=ONLINE&serviceId=2" "/usr/moomoo/domains/moomoo.co.il/ROOT/jsp/moomoo/html/club_online.html" "UTF-8" &
echo kill -9 $! | at now + 5min
date
echo "Finished ..."