Created
March 17, 2020 17:11
-
-
Save ripxorip/474efa0032973a36910b4ebd76fd3110 to your computer and use it in GitHub Desktop.
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
scp $1 pi@printer:~/ | |
ssh pi@printer "sudo mount /dev/sda1 /home/pi/SD" | |
ssh pi@printer "sudo cp /home/pi/$1 /home/pi/SD/" | |
ssh pi@printer "sudo rm /home/pi/$1" | |
ssh pi@printer "sudo umount /home/pi/SD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment