Last active
August 29, 2015 14:10
-
-
Save afk11/a3d3a661d499e1cf2dd7 to your computer and use it in GitHub Desktop.
Bash script to take a screenshot and upload to a remote webhost
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
#!/bin/bash | |
mkdir /tmp/screenio | |
echo "Enter screenshot filename:" | |
read filename | |
scrot /tmp/screenio/$filename.png | |
scp /tmp/screenio/$filename.png thelab:/var/www/thomaskerin.io/uploads/ | |
echo "Uploaded to https://thomaskerin.io/uploads/$filename.png" | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment