Last active
February 19, 2016 11:22
-
-
Save pilotmt10/97e18ec095e906e4803d to your computer and use it in GitHub Desktop.
Скриншотер с загрузкой на сервер
This file contains hidden or 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 | |
# | |
# Скриншотер с загрузкой на сервер | |
# @author sergKs | |
# | |
caption="Снимок экрана от `date +%F` `date +%H:%M:%S`" | |
tmpDir='/tmp' | |
tmpFile="screenshot.png" | |
uploadUrl='' | |
gnome-screenshot -a --file $tmpDir/$tmpFile | |
response=$(curl -F "file=@$tmpDir/$tmpFile;type=image/png" -F "caption=$caption" $uploadUrl) | |
unlink $tmpDir/$file | |
gnome-www-browser $response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment