Skip to content

Instantly share code, notes, and snippets.

@pilotmt10
Last active February 19, 2016 11:22
Show Gist options
  • Save pilotmt10/97e18ec095e906e4803d to your computer and use it in GitHub Desktop.
Save pilotmt10/97e18ec095e906e4803d to your computer and use it in GitHub Desktop.
Скриншотер с загрузкой на сервер
#!/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