Skip to content

Instantly share code, notes, and snippets.

@Zibri
Last active July 26, 2021 14:33
Show Gist options
  • Save Zibri/d1d17e7e4ee3651e96566303779f53d5 to your computer and use it in GitHub Desktop.
Save Zibri/d1d17e7e4ee3651e96566303779f53d5 to your computer and use it in GitHub Desktop.
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