by paskozdilar · 4y ago · 0 comments
cat hosts.txt | parallel --quote --timeout=10 ssh {} 'echo {} $(md5sum ~/.config/file)'
The above command would take a list of hostnames from the hosts.txt file, connect to each one, hash the config file and print out hostnames and hashes in one line per host. cat hosts.txt | parallel --quote --timeout=10 ssh {} 'echo {} $(md5sum ~/.config/file)'
Also try: parallel --slf hosts.txt --timeout=10 --nonall --tag md5sum .config/filecommand_to_test && exit
in the swarm of tmux tabs and let only the anomalies stay open.