Strict Standards: Declaration of action_plugin_captcha::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/gluek2015/gluek.info/wiki/lib/plugins/captcha/action.php on line 16

Strict Standards: Declaration of action_plugin_discussion::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/gluek2015/gluek.info/wiki/lib/plugins/discussion/action.php on line 0

Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/gluek2015/gluek.info/wiki/lib/plugins/importoldchangelog/action.php on line 0

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/gluek2015/gluek.info/wiki/lib/plugins/indexmenu/action.php on line 0

Strict Standards: Declaration of action_plugin_openid::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/gluek2015/gluek.info/wiki/lib/plugins/openid/action.php on line 0

Strict Standards: Declaration of action_plugin_popupviewer::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/gluek2015/gluek.info/wiki/lib/plugins/popupviewer/action.php on line 0

Strict Standards: Declaration of action_plugin_translation::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/gluek2015/gluek.info/wiki/lib/plugins/translation/action.php on line 0
screenshot.sh [GluekWiki]
 
Translations of this page:

screenshot.sh

Скрипт для создания скриншота (import) и загрузки на сервер (scp). В буфер обмена копируется ссылка (dcop klipper) на скриншот.

#!/bin/bash
name=`hostname`-`date +%F-%T`
file=$name.jpg
import -silent /tmp/$name.jpg
url="http://gluek.info/images/screenshots/$file"
dcop klipper klipper setClipboardContents "$url"
scp -Cq /tmp/$file gluek.info:gluek.info/images/screenshots
rm -f /tmp/$file

Пример:

42.jpg

 
linux/scripts/screenshot.sh.txt · Последние изменения: 11.06.2008 00:00 (внешнее изменение)
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki