Created
June 8, 2024 18:18
-
-
Save ACK-J/1b077eb5578323674b5162a52549c145 to your computer and use it in GitHub Desktop.
churn large outputs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
if {[llength $argv] != 5} { | |
puts stderr "Usage: Pass an amount and a priority as arguments!" | |
exit 1 | |
} | |
set walletName [lindex $argv 0]; | |
set network [lindex $argv 1]; | |
set REMOTE_NODE [lindex $argv 2]; | |
set PORT [lindex $argv 3]; | |
set address [lindex $argv 4]; | |
set timeout 21600 | |
spawn monero-wallet-cli --$network --wallet ./$walletName --daemon-address $network.$REMOTE_NODE:$PORT --log-file /dev/null --trusted-daemon | |
match_max 10000 | |
expect "Wallet password: " | |
send -- "\r" | |
expect "wallet*]:*" | |
send -- "transfer $address 2.1\r" | |
expect { | |
"Transaction successfully submitted*wallet*]:*" {send "exit\r"} | |
"Error: *\[wallet*" {sleep 10;send "transfer $address 2.1\r";exp_continue} | |
"(out of sync)]: *" {send "refresh\r";exp_continue} | |
"(Y/Yes/N/No): *" {send "y\r";exp_continue} | |
timeout {send "transfer $address 2.1\r";exp_continue} | |
} | |
expect eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
while :; do ./churn.exp Stagenet-Funding stagenet "community.rino.io" 38081 58JXYTzKV7wZq9wGeQW8FdYGKU367u9evCsJK7JyNd2JiwH8MoavmBVAr4bb4hyXzggPDafLpUz7kCAtn8g7NKaXLSLmTe1;done