You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
758 B
28 lines
758 B
2 years ago
|
#!/usr/bin/expect -f
|
||
|
set path [lindex $argv 0]
|
||
|
set date [lindex $argv 1]
|
||
|
|
||
|
#Lala
|
||
|
spawn ssh -p4848 ditolak@lala.cayangqu.com python3.8 './twitmonitor/monitor.py' $path $date
|
||
|
expect "password:"
|
||
|
send "2020 Rahasia123!\r"
|
||
|
interact
|
||
|
sleep 2
|
||
|
spawn scp -P4848 ditolak@lala.cayangqu.com:/home/ditolak/twitmonitor/twit_monitor.txt ./monitoring/lala.txt
|
||
|
expect "password:"
|
||
|
send "2020 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 2
|
||
|
spawn scp -P4848 biasa@anin.cayangqu.com:/home/biasa/twitmonitor/twit_monitor.txt ./monitoring/anin.txt
|
||
|
expect "password:"
|
||
|
send "2020 seperti kemarin\r"
|
||
|
interact
|
||
|
|
||
|
spawn ./monitoring/devi.py
|
||
|
interact
|