[更新]ubuntuシステムタイミング起動コマンドステップ


詳細
スタンバイ後タイミングで起動、本人ubuntu 14.04 LTS
試験例:待機60秒後に起動
sudo rtcwake -u -s 60 -m mem

スクリプトのスケジュールを書くuntil.sh

#!/bin/bash

# Auto suspend and wake-up script
#
# Puts the computer on standby and automatically wakes it up at specified time
#
# Written by Romke van der Meulen 
# Minor mods fossfreedom for AskUbuntu
#
# Takes a 24hour time HH:MM as its argument
# Example:
# suspend_until 9:30
# suspend_until 18:45

# ------------------------------------------------------
# Argument check
if [ $# -lt 1 ]; then
    echo "Usage: suspend_until HH:MM"
    exit
fi

# Check whether specified time today or tomorrow
DESIRED=$((`date +%s -d "$1"`))
NOW=$((`date +%s`))
if [ $DESIRED -lt $NOW ]; then
    DESIRED=$((`date +%s -d "$1"` + 24*60*60))
fi

# Kill rtcwake if already running
sudo killall rtcwake

# Set RTC wakeup time
# N.B. change "mem" for the suspend option
# find this by "man rtcwake"
sudo rtcwake -u -m mem -t $DESIRED &

# feedback
echo "Suspending..."

# give rtcwake some time to make its stuff
sleep 2

# then suspend
# N.B. dont usually require this bit
#sudo pm-suspend

# Any commands you want to launch after wakeup can be placed here
# Remember: sudo may have expired by now

# Wake up with monitor enabled N.B. change "on" for "off" if 
# you want the monitor to be disabled on wake
# xset dpms force on

# and a fresh console
clear
echo "Good morning!"
chmod +x suspend_until.sh 

例えば朝8時半に自動目覚まし
 suspend_until.sh 8:30 

リファレンスhttp://goo.gl/apFmNA原文のタイミングステップコード:sudo rtcwake-l-m mem-t$DESIRED本人がsudo rtcwake-u-m mem-t$DESIREDに変更されました
修正後のテスト時間は完全に正しいが,端末コマンドで現実に出てくる時間が間違っているだけで,実際に待機して起動する時間は正しい.