-
-
Save clehner/4158853 to your computer and use it in GitHub Desktop.
update all your namecoin domains
This file contains 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/env coffee | |
# put this file in the same dir as namecoind executable | |
child_process = require 'child_process' | |
child_process.exec './namecoind name_list', (err, stdout, stderr) -> | |
(JSON.parse stdout).forEach (domain) -> | |
if domain.expires_in < 5000 | |
command = "./namecoind name_update #{JSON.stringify domain.name} #{JSON.stringify domain.value}" | |
child_process.exec command, () -> | |
console.log command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment