<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snaka72</author_name>
  <author_url>https://blog.hatena.ne.jp/snaka72/</author_url>
  <blog_title>今日もスミマセン。</blog_title>
  <blog_url>https://snaka72.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>やりたいこと cronとかで、自動的にスクリプトを実行したときに、その実行開始／終了のタイミングで開始時刻／終了時刻を標準出力に出力したい。 そこで 汎用的に使えるちょっとしたスクリプトを組んでみた以下のスクリプトを、timestamp.rb という名前で作成して、ロード可能な場所に配置しておきます。 puts &quot;-&quot; * 60 puts &quot;#{Time.now} #{$0} was started&quot; puts &quot;-&quot; * 60 END { puts &quot;-&quot; * 60 puts &quot;#{Time.now} #{$0} was finished &quot; puts &quot;-&quot; * 60 } これで、ruby…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsnaka72.hatenadiary.org%2Fentry%2F20091222%2F1261498779&quot; title=&quot;任意のRubyスクリプトを実行するとき開始／終了時のタイムスタンプを出力する方法 - 今日もスミマセン。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-12-22 01:19:39</published>
  <title>任意のRubyスクリプトを実行するとき開始／終了時のタイムスタンプを出力する方法</title>
  <type>rich</type>
  <url>https://snaka72.hatenadiary.org/entry/20091222/1261498779</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
