OSXã®å ´åã®ããæ¹ã ãã©Windowsã§ãä¼¼ããããªãã¨ã¯åºæ¥ãã¨æãã
æé
(1) Gemã®ã¤ã³ã¹ãã¼ã«
$ gem install qiita_mail
(2) qiita_mail deliver ãå®è¡åºæ¥ãããã«ããã詳ãã㯠QiitaMailã®ä½¿ãæ¹
(3) OSXã®ç°å¢è¨å®:ãçã¨ãã«ã®ã¼ãâãã¹ã±ã¸ã¥ã¼ã«ãâã¹ãªã¼ã解é¤ãæ¯æ¥ãã4:59ã
(4) qiita_mail_and_sleep ã ~/bin ã«é ç½® (qiita_mailã®å ´æã¯homebrewãªã/usr/local/binãã¦ã§ã¤ããå ¥ããã®ããã¤)
# 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'
(5) ãã°ç½®ãå ´ã®ããã® ~/tmp ãä½æ
(6) crontab -e ã§æ¯æ¥5:00ã«qiita_mail_and_sleepãå®è¡ãããcrontab -l ã®çµæã以ä¸ã®ããã«ãªãã°æå
# min hour mday month wday command 0 5 * * * /Users/a_user/bin/qiita_mail_and_sleep
gistã«ãç½®ãã¦ããã¾ãã
çµæ
PCãã¹ãªã¼ããã¦ãã¦ãããã®æ¥ã«çãä¸ãã£ãQiitaã®è¨äºãã¡ã¼ã«ã§éããã¦ããããã«ãªããæ¨æ¥éããã¦ããã®ã¯ãããªæãã ã£ãã
ããã¯ã¢ããããè¨äºã®ãã¼ã¯ã¼ã
~/.qiita_mail.yaml
ã®è¨å®ã使ã£ã¦ãã人ãããããããã¦ããããå¬ããã
--- email: 'xxx@com' keywords: - ruby - javascript - emacs - mruby - ã¤ã³ã¹ãã¼ã« - ruby sinatra