Skip to content

Instantly share code, notes, and snippets.

@afk11
Last active August 29, 2015 14:10
Show Gist options
  • Save afk11/a3d3a661d499e1cf2dd7 to your computer and use it in GitHub Desktop.
Save afk11/a3d3a661d499e1cf2dd7 to your computer and use it in GitHub Desktop.
Bash script to take a screenshot and upload to a remote webhost
#!/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