Skip to content

Instantly share code, notes, and snippets.

@Zibri
Last active Jul 26, 2021
Embed
What would you like to do?
Refresh MEGA.NZ accounts from expiring.
#!/bin/bash
# install megacmd from mega.nz first.
# put your usernames and passwords
# run this once a month :D
while read a b;do
mega-login &>/dev/null $a $b && mega-logout &>/dev/null && echo refreshed $a || echo error $a
done <<EOF
email1 password1
email2 password2
email3 password3
email3 password3
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment