|
|
|
#!/usr/bin/expect -f
|
|
|
|
set path [lindex $argv 0]
|
|
|
|
set date [lindex $argv 1]
|
|
|
|
|
|
|
|
#Haerin
|
|
|
|
spawn ssh -p4848 telakses@haerin.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@haerin.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/haerin.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Hyein
|
|
|
|
spawn ssh -p4848 telakses@hyein.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@hyein.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/hyein.txt
|
|
|
|
expect "password:"
|
|
|
|
send "rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Hanni
|
|
|
|
spawn ssh -p4848 telakses@hanni.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@hanni.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/hanni.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Noella
|
|
|
|
#spawn ssh -p4848 telakses@noella.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
#expect "password:"
|
|
|
|
#send "Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
#sleep 1
|
|
|
|
#spawn scp -P4848 telakses@noella.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/noella.txt
|
|
|
|
#expect "password:"
|
|
|
|
#send "Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
|
|
|
|
#Lina
|
|
|
|
spawn ssh -p4848 telakses@lina.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@lina.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/lina.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Collection bot
|
|
|
|
spawn ssh -p4848 telakses@collection-bot.tel-access.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@collection-bot.tel-access.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/collection.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Wista
|
|
|
|
spawn ssh -p4848 hilang@wista.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "2020 ga tau kemana\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 hilang@wista.cayangqu.com:/home/hilang/twitmonitor/twit_monitor.txt ./monitoring/wista.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 ga tau kemana\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Devi
|
|
|
|
spawn ssh -p4848 bsmqris@devi.cayangqu.com python3.8 './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "2020 kena pa lo\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 bsmqris@devi.cayangqu.com:/home/bsmqris/twitmonitor/twit_monitor.txt ./monitoring/devi.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 kena pa lo\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Freya
|
|
|
|
spawn ssh -p4848 telakses@freya.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "2020 Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@freya.cayangqu.com:/home/telakses/twitmonitor/twit_monitor1.txt ./monitoring/freya1.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@freya.cayangqu.com:/home/telakses/twitmonitor/twit_monitor2.txt ./monitoring/freya2.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@freya.cayangqu.com:/home/telakses/twitmonitor/twit_monitor3.txt ./monitoring/freya3.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Calysta
|
|
|
|
#spawn ssh -p4848 telakses@calysta.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
#expect "password:"
|
|
|
|
#send "Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
#sleep 1
|
|
|
|
#spawn scp -P4848 telakses@calysta.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/calysta.txt
|
|
|
|
#expect "password:"
|
|
|
|
#send "Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
|
|
|
|
#Eve
|
|
|
|
spawn ssh -p4848 telakses@eve.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@eve.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/eve.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Ashel
|
|
|
|
spawn ssh -p4848 telakses@ashel.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@ashel.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/ashel.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Yuvia
|
|
|
|
spawn ssh -p4848 vconf@yuvia.cayangqu.com python3.8 './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "2020 salah lagi\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 vconf@yuvia.cayangqu.com:/home/vconf/twitmonitor/twit_monitor.txt ./monitoring/yuvia.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 salah lagi\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#POC Mandiri
|
|
|
|
spawn ssh -p4848 telakses@pocmandiri.tel-access.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@pocmandiri.tel-access.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/pocmandiri.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Cindy
|
|
|
|
spawn ssh -p4848 telakses@cindy.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@cindy.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/cindy.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Wallet-demo
|
|
|
|
spawn ssh -p4848 telakses@wallet-demo.tel-access.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@wallet-demo.tel-access.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/walletdemo.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#AI
|
|
|
|
spawn ssh -p4848 telakses@ai.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@ai.cayangqu.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/ai.txt
|
|
|
|
expect "password:"
|
|
|
|
send "Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Anin
|
|
|
|
spawn ssh -p4848 biasa@anin.cayangqu.com python3.8 './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "2020 seperti kemarin\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 biasa@anin.cayangqu.com:/home/biasa/twitmonitor/twit_monitor.txt ./monitoring/anin.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 seperti kemarin\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Lala
|
|
|
|
spawn ssh -p4848 ditolak@lala.cayangqu.com python3.8 './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "2020 Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 ditolak@lala.cayangqu.com:/home/ditolak/twitmonitor/twit_monitor.txt ./monitoring/lala.txt
|
|
|
|
expect "password:"
|
|
|
|
send "2020 Rahasia123!\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Demochat
|
|
|
|
spawn ssh -p4848 telakses@demochat-crm.tel-access.com './twitmonitor/monitor.py' $path $date
|
|
|
|
expect "password:"
|
|
|
|
send "rahasia\r"
|
|
|
|
interact
|
|
|
|
sleep 1
|
|
|
|
spawn scp -P4848 telakses@demochat-crm.tel-access.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/demochat.txt
|
|
|
|
expect "password:"
|
|
|
|
send "rahasia\r"
|
|
|
|
interact
|
|
|
|
|
|
|
|
#Jessica
|
|
|
|
#spawn ssh -p4848 bebas@jessica.chandrawisesa.com './twitmonitor/monitor.py' $path $date
|
|
|
|
#expect "password:"
|
|
|
|
#send "kosongin aja\r"
|
|
|
|
#interact
|
|
|
|
#sleep 1
|
|
|
|
#spawn scp -P4848 bebas@jessica.chandrawisesa.com:/home/bebas/twitmonitor/twit_monitor.txt ./monitoring/jessica.txt
|
|
|
|
#expect "password:"
|
|
|
|
#send "kosongin aja\r"
|
|
|
|
#interact
|
|
|
|
|
|
|
|
#Zahra
|
|
|
|
#spawn ssh -p4848 telakses@zahra.yuriva.com './twitmonitor/monitor.py' $path $date
|
|
|
|
#expect "password:"
|
|
|
|
#send "2020 Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
#sleep 1
|
|
|
|
#spawn scp -P4848 telakses@zahra.yuriva.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/zahra.txt
|
|
|
|
#expect "password:"
|
|
|
|
#send "2020 Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
|
|
|
|
#Violeta
|
|
|
|
#spawn ssh -p4848 coba@violeta.cayangqu.com './twitmonitor/monitor.py' $path $date
|
|
|
|
#expect "password:"
|
|
|
|
#send "tadi udah kan\r"
|
|
|
|
#interact
|
|
|
|
#sleep 1
|
|
|
|
#spawn scp -P4848 coba@violeta.cayangqu.com:/home/coba/twitmonitor/twit_monitor.txt ./monitoring/violeta.txt
|
|
|
|
#expect "password:"
|
|
|
|
#send "tadi udah kan\r"
|
|
|
|
#interact
|
|
|
|
|
|
|
|
#Smart Record
|
|
|
|
#spawn ssh -p4848 telakses@smartrecord.tel-access.com './twitmonitor/monitor.py' $path $date
|
|
|
|
#expect "password:"
|
|
|
|
#send "Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
#sleep 1
|
|
|
|
#spawn scp -P4848 telakses@smartrecord.tel-access.com:/home/telakses/twitmonitor/twit_monitor.txt ./monitoring/smartrecord.txt
|
|
|
|
#expect "password:"
|
|
|
|
#send "Rahasia123!\r"
|
|
|
|
#interact
|
|
|
|
|
|
|
|
#Yuriva
|
|
|
|
#spawn ssh -p4848 bebas@yuriva.com './twitmonitor/monitor.py' $path $date
|
|
|
|
#expect "password:"
|
|
|
|
#send "kosongin aja\r"
|
|
|
|
#interact
|
|
|
|
#sleep 1
|
|
|
|
#spawn scp -P4848 bebas@yuriva.com:/home/bebas/twitmonitor/twit_monitor.txt ./monitoring/yuriva.txt
|
|
|
|
#expect "password:"
|
|
|
|
#send "kosongin aja\r"
|
|
|
|
#interact
|
|
|
|
|
|
|
|
spawn ./monitoring/util.py
|
|
|
|
interact
|