Created
November 14, 2018 10:23
-
-
Save StephanieSunshine/cf2bb5a05e6e58fa5a6c06213ecda6f5 to your computer and use it in GitHub Desktop.
tlosfs-watcher.sh
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 bash | |
node_id=`ipfs id | grep \"ID\" | awk '{ print $2; }' | tr -d \" | tr -d \,` | |
ipfs pubsub sub $node_id | xargs -n 1 -P 0 ipfs pin add & | |
ipfs pubsub sub unpin | xargs -n 1 -P 0 ipfs pin rm & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment