From 041af8c2c23637f080c286a4baf60494188a2819 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 23 Feb 2010 13:52:03 +0200 Subject: logfile --- sandman.command | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 sandman.command diff --git a/sandman.command b/sandman.command deleted file mode 100644 index 18f2190..0000000 --- a/sandman.command +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -ON_DELAY=20 -OFF_DELAY=20 - -if [[ $USER != "root" ]]; then - echo "This must be run as root" - exit 1 -fi - -sleep $ON_DELAY -TIMESTAMP=$(php -r "echo @date('H:i:s', time() + ${OFF_DELAY});") -pmset repeat poweron MTWRFSU ${TIMESTAMP} -echo -n $(date "+%d.%m.%y @ %H:%I:%S") >> $LOGFILE -echo " " $(wc -l $LOGFILE) >> $LOGFILE -shutdown -h now -- cgit v1.2.3