- qiita_mail Gem のインストール
gem install qiita_mail
qiita_mail deliver
が実行出来るようにする、詳しくは QiitaMailの使い方 - Qiita- 「省エネルギー」に「スケジュール」→スリープ解除「毎日」「4:59」
qiita_mail_and_sleep
を~/bin
に配置- ログ置き場のための
~/tmp
を作成 crontab -e
で毎日5:00にqiita_mail_and_sleep
を実行するようにする- sleepでウェイトをいれるのがこつ
Last active
December 12, 2015 09:08
-
-
Save ongaeshi/4748817 to your computer and use it in GitHub Desktop.
QiitaMailをマシンがスリープした状態でも毎日送信してくれるように設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# min hour mday month wday command | |
0 5 * * * /Users/a_user/bin/qiita_mail_and_sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# send mail | |
/opt/local/bin/qiita_mail deliver >> /Users/a_user/tmp/qiita_mail.log | |
# Wait send mail | |
sleep 60 | |
# sleep | |
osascript -e 'tell app "Finder" to sleep' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment