{"type":"rich","height":"190","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/rubikitch/","blog_title":"http://rubikitch.com/\u306b\u79fb\u8ee2\u3057\u307e\u3057\u305f","width":"100%","url":"https://rubikitch.hatenadiary.org/entry/20091006/1254755937","description":"\u7279\u5b9a\u306e\u6642\u523b\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001cron\u3084at\u304c\u3042\u308b\u3002\u4e00\u5b9a\u6642\u9593\u5f85\u3064\u306b\u306fsleep\u304c\u3042\u308b\u3002 \u7279\u5b9a\u306e\u6642\u523b\u307e\u3067\u5f85\u3064\u30b3\u30de\u30f3\u30c9\u304c\u308f\u304b\u3089\u306a\u3063\u305f\u306e\u3067\u3001\u901f\u653b\u3067Ruby\u3067\u66f8\u3044\u3066\u307f\u305f\u3002\u3053\u3093\u306a\u306e\u306f\u3050\u3050\u308b\u3088\u308a\u3082\u66f8\u304f\u307b\u3046\u304c\u65e9\u3044\u306e\u3067\u3002 #!/usr/bin/env ruby require 'time' time = Time.parse ARGV.join(\" \") secs = time - Time.now puts \"Sleep #{secs}seconds (until #{time})\" sleep secs \u4f7f\u3044\u65b9\u306f\u5f15\u6570\u306b\u6642\u523b\u6587\u5b57\u5217\u3092\u66f8\u304f\u3060\u3051\u3002 \u4f7f\u7528\u4f8b $ sleep-until 0:30 Sleep \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubikitch.hatenadiary.org%2Fentry%2F20091006%2F1254755937\" title=\"sleep-until - \u7279\u5b9a\u306e\u6642\u523b\u307e\u3067\u5f85\u3061\u7d9a\u3051\u308bRuby\u30b9\u30af\u30ea\u30d7\u30c8 - http://rubikitch.com/\u306b\u79fb\u8ee2\u3057\u307e\u3057\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://rubikitch.hatenadiary.org/","published":"2009-10-06 00:18:57","author_name":"rubikitch","categories":["ruby"],"version":"1.0","image_url":null,"provider_name":"Hatena Blog","title":"sleep-until - \u7279\u5b9a\u306e\u6642\u523b\u307e\u3067\u5f85\u3061\u7d9a\u3051\u308bRuby\u30b9\u30af\u30ea\u30d7\u30c8"}