Senin, 07 Maret 2016

liadhbs

#!/bin/sh
ACLDIR=`cat /usr/bin/liapath |grep ACCELLPATH|cut -f2`
U__REL__=IDS2.0.3.0.0
BUDEV=/dev/rfd096ds15; export BUDEV
BUDRVR=BUDRVR; export BUDRVR
BUBLK=4096; export BUBLK
NSEGS=1; export NSEGS
case $PATH in
:*) PATH=:$ACLDIR/bin$PATH;;
*) PATH=$ACLDIR/bin:$PATH;;
esac
UNIFY=$ACLDIR/lib
DBPATH=`cat /usr/bin/liapath |grep DBADMPATH|cut -f2`
LDATEFMT=DD-AAA-YYYY;export LDATEFMT
export PATH UNIFY DBPATH
if [ -f $UNIFY/unifymsgs ]
then continue
else echo accell: UNIFY environment variable incorrectly set to \'$UNIFY\'
echo \(The ACCELL directory may have been moved without changing \'accell\'\)
exit 1
fi
if [ "$TERMCAP" = "" ]
then TERMCAP=$UNIFY/termcap; export TERMCAP
else if [ -f $TERMCAP ]
then continue
else echo accell: cannot find the TERMCAP file
echo \(TERMCAP environment variable incorrectly set to \'$TERMCAP\'\)
exit 1
fi
fi
if [ "$UNICAP" = "" ]
then UNICAP=$UNIFY/unicap; export UNICAP
else if [ -f $UNICAP ]
then continue
else echo accell: cannot find the UNICAP file
echo \(UNICAP environment variable incorrectly set to \'$UNICAP\'\)
exit 1
fi
fi
#- Mencari kode Venue --------------------------------------------------
rm /tmp/tmp_dhbs_venue
echo "lines 0
select ps_kode_cb from ppiasys /" > /tmp/tmp_dhbs_venue
chmod 666 /tmp/tmp_dhbs_venue
BRANCH=`SQL /tmp/tmp_dhbs_venue`
USER=`who am i | cut -c1-11`
#
#- Menambah ke tabel RSTDACD -------------------------------------------
#rm /tmp/tmpstdacd*
#tgl=`/bin/date +%d-%h-%Y`
#echo "lines 0
#select tps_term from term
#where tps_awal<$tgl and tps_akhir>$tgl /" > /tmp/tmpstdacd1
#term=`SQL /tmp/tmpstdacd1`
#echo "lines 0
#select '$tgl',sta_course,sta_term,count (*),'$BRANCH' from stdacd
#where sta_1^=4 and sta_term='$term' and sta_room^='DUM*' and sta_course^='EX*'
#group by sta_course /" > /tmp/tmpstdacd2
#SQL /tmp/tmpstdacd2 > /tmp/tmpstdacd3
#echo "insert into rstdacd: from '/tmp/tmpstdacd3' /" > /tmp/tmpstdacd4
#SQL /tmp/tmpstdacd4
#
clear
echo " "
echo "MEMBUAT DATA DHBS UNTUK DIUMUMKAN via SMS / INTERNET"
echo " "
#echo "Menggunakan Disket"
echo " "
#echo "- Siapkan disket baru & masukkan ke drive di Server"
#echo "- Jika drive jarang dipakai (kotor) tolong dibersihkan dulu pakai Cleaner"
echo "- Pastikan bahwa semua nilai siswa pada Term ini sudah lengkap termasuk"
echo "  nilai siswa yang Make-Up"
echo "- Jika proses berhasil, gunakan internet (http://smart.lia.ac.id/app/..."
echo "  untuk mengirimkan data ke WEB SERVER"
echo " "
echo " "
echo "Tanggal Update Data : \c"
read TERM
echo "Ditunggu sebentar ......."

BAR="_"
A="PM"
#FILEDHBS=`echo $A$BAR$BRANCH$BAR$TERM$BAR$USER`
FILEDHBS=`echo $BRANCH$BAR$TERM$BAR$USER`
DHBSPATH=`cat /usr/bin/liapath |grep DHBSPATH|cut -f2`

rm /tmp/tmp_dhbs_select
echo "lines 0
select sth_num,std_name,ps_institute,sth_term,sth_harian,sth_written,sth_oral,sth_final,sth_attrec,sth_fail,sth_course
from stdacdh,ppiasys,course,term,stdmst,hari,jam
where sth_num=std_code and sth_course=crs_code and sth_day=kodehari and sth_time=kodejam and sth_term=tps_term and sth_today=$TERM and sth_final > 0
 into '$DHBSPATH/$FILEDHBS.TXT'/" > /tmp/tmp_dhbs_select
chmod 666 /tmp/tmp_dhbs_select
rm $DHBSPATH/$FILEDHBS
SQL /tmp/tmp_dhbs_select
chmod 666 $DHBSPATH/$FILEDHBS.TXT
echo " "
echo "Tanggal Update : $TERM"
echo "File Name      : $FILEDHBS"
echo "Folder         : $DHBSPATH"
echo " "
doscp $DHBSPATH/$FILEDHBS A:$FILEDHBS
echo " "
echo "Selesai"
echo "(tekan enter)"
read xxx

Crontabs

3 3 * * * /usr/lib/cleantmp > /dev/null
1 3 * * * /etc/setclk -rd1800 > /dev/null 2>&1
#5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
0 4 * * 0 /etc/custom -V symlinks;# CUSTOM_SYMLINK_REPORT
0 0 * * 1-5 scosh cronsched -r
0 0 * * 1   scosh cronsched -wr
0 0 * * *   /u/data/sms_backup/smsbackup 2> /dev/null
0,15,30,45 8-18 * * * * /usr/bin/liaplactest  2> /dev/null
0 6 * * * /u/user/profile/indra/tmp/ilang2  2> /dev/null
0 12 * 1 * /u/data/sms_gateway/bday  2> /dev/null
0 7 * * * /u/data/sms_gateway/bdaysend  2> /dev/null
0 0 * * * /usr/bin/cleantmp  2> /dev/null
5 0 * * * /usr/bin/hapustmp  2> /dev/null
0 7-21 * * * /u/data/sms_gateway/iplace 2>/dev/null
1 6 * * * /u/user/profile/indra/tmp/quote0 2> /dev/null
5 6 * * * /u/user/profile/indra/tmp/nice 2> /dev/null
15,45 8-18 * * * /u/user/profile/indra/pinging 2>/dev/null
5 10,16 * * * 3,6,9,12 /u2/webroot/siswa/promotion 2>/dev/null
5 17 * * * * /u2/webroot/siswa/placement 2>/dev/null
0 8-18 * * * /u2/webroot/finance/rutin 2>/dev/null
10 8-18 * * * /u2/webroot/finance/rutin0 2>/dev/null
5 12 * * * /u2/webroot/finance/rutinklas 2>/dev/null
30 8-18 * * * /u2/webroot/finance/rutin1 2>/dev/null
0 21 * * * /u/backup_data/backup_15 2>/dev/null

Setting Laporan by WEB

http://192.168.0.15/cgi-bin/rlbpp?code=day
http://192.168.0.15/cgi-bin/rlbpp?code=cashier
http://192.168.0.15/cgi-bin/rlbpp?code=cc
http://192.168.0.15/cgi-bin/rlbpp?tgl1=1-Jan-2012&tgl2=19-Apr-2012&code=cc

http://192.168.0.15/cgi-bin/slbpp?code=siswa1
http://192.168.0.15/cgi-bin/slbpp?code=siswa2
http://192.168.0.15/cgi-bin/slbpp?code=siswa3


Folder Password di:
/u2/htaccess

ganti password :
./ht bambang

buat user
./ht bambang
file nya ada di passwd.ht

buat group
file ada di group.ht


Laporan-Laporan by Web :
http://192.168.0.15/income.html
--> /u2/webroot/htdocs/income.html
---> /u2/webroot/finance/rlbppm

http://192.168.0.15/dhbs.html
--> /u2/webroot/htdocs/dhbs.html
---> /u2/webroot/academic/dhbs

http://192.168.0.15/klas.html
--> /u2/webroot/htdocs/klas.html
---> /u2/webroot/siswa/klas


Header : /u2/webroot/finance/menuoption

Password ke 015 :
/u2/htaccess

/u2/webroot/finance/rlbppweb
/u2/webroot/finance/rlbppm
/u2/webroot/index.html


Monitoring Penerimaan Hari Ini LBPP+KPT :
/u2/webroot/finance/rutin

Monitoring Jumlah Siswa Hari ini LBPP+KPT :
/u2/webroot/finance/rutin1

Monitoring Jumlah Siswa Hari ini LBPP+KPT :
/u2/webroot/siswa/klasweb n klas

Status Router & Database :
/u/user/profile/indra/pinging

Copy file sqlcab baru dari 0.15
rubah path-nya

Promotion & Placement :
/u2/webroot/siswa

File di tmp :
hargakrs.pr
klas.pr
place.pr
promo.pr
rutin.pr
siswa.pr
sql.pr


Untuk Ulang Tahun :
/u/data/sms_gateway

File tmp : bday.pr
bday
bdaysend
bdaytoday
bdayfile


LOG SMS :
/u/data
submitsms.log
keluhansiswa.log
placement.log
tanyasiswa.log
troublecabang.log










Update Payakumbuh

Update CBTRN Payakumbuh update cbtrn set ct_cash_code='8.01.10' where ct_cash_code='8.01.11' /