mirror of
https://gitlab.com/ceda_ei/pc-monitor-bot
synced 2025-05-09 17:36:53 +02:00
Add screenshot.sh
This commit is contained in:
parent
96d557b635
commit
8d9e8e1add
10
screenshot.sh
Executable file
10
screenshot.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
var=$(mktemp /tmp/XXXXXXXX.png)
|
||||||
|
scrot -zm $var
|
||||||
|
exit_code=$?
|
||||||
|
if [[ $exit_code -ne 0 ]]; then
|
||||||
|
echo False
|
||||||
|
exit $exit_code
|
||||||
|
fi
|
||||||
|
echo $var
|
Loading…
x
Reference in New Issue
Block a user