1
0
mirror of https://gitlab.com/ceda_ei/pc-monitor-bot synced 2025-07-01 19:26:51 +02:00
pc-monitor-bot/screenshot.sh
2018-10-03 01:58:00 +05:30

10 lines
147 B
Bash
Executable File

#!/usr/bin/env bash
var=$(mktemp /tmp/XXXXXXXX.png)
scrot -zm $var
exit_code=$?
if [[ $exit_code -ne 0 ]]; then
exit $exit_code
fi
echo -n $var