Skip to content

Instantly share code, notes, and snippets.

@Mohitsharma44
Created November 10, 2018 23:57
Show Gist options
  • Save Mohitsharma44/4ae31e58fce2174e13f26eb166fdc60a to your computer and use it in GitHub Desktop.
Save Mohitsharma44/4ae31e58fce2174e13f26eb166fdc60a to your computer and use it in GitHub Desktop.
Copying files from Master Pi to Client Pis
#!/bin/bash
echo -ne "Prepping CenterVizWall"
echo
echo -ne "Setting correct vizwall configuration options for all-screen-cast"
for dest in $(<destfile.txt); do scp .piwall listener.sh ${dest}:/home/pi/; done
@Mohitsharma44
Copy link
Author

Contents of destfile.txt should be the hostnames like this:

vizwall-00
vizwall-01
vizwall-02
vizwall-03
vizwall-04
vizwall-05
vizwall-06
vizwall-07
vizwall-08
vizwall-09
vizwall-10
vizwall-11
vizwall-12
vizwall-13
vizwall-14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment