Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Bash by Landgraff ( 14 years ago )
#!/bin/sh
null=0
TMP=~/tmp
zenity --entry --title="Таймер выключения" --text="Введите время до выключения (s,m,h,d)" > $TMP
input=$(cat $TMP)
echo $input
if [ $input ] > [$null]
then notify-send "$(echo 'Выключение через    '$input'')" -u critical
sleep "$input"
halt
else notify-send "$(echo 'Занчение меньше нуля')" -u critical ; exit
fi


#требует наличия zenity и notify-send

 

Revise this Paste

Your Name: Code Language: