<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>youzine</author_name>
  <author_url>https://blog.hatena.ne.jp/youzine/</author_url>
  <blog_title>Geecul</blog_title>
  <blog_url>https://www.geecul.com/</blog_url>
  <categories>
    <anon>TechNotes</anon>
  </categories>
  <description>事象 コマンドを実行してその結果をファイルに出力する記載をcrontabに記載した。 しかし意図した通りにファイルが作成されない。 しかし手動でコマンドを実行する正常に動作する。 #うまくいかないcrontab記載の例 [example@ec2 ~]# crontab -l 15 7 * * * echo 'Hello World!' &gt; /work/Hello_`date +%Y%m%d%-%H%M%S`.log [example@ec2 ~]# #出力先ディレクトリを確認しても何もない [example@ec2 ~]# ls -l /work total 0 [example@ec2 ~]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.geecul.com%2Fentry%2F2021%2F07%2F18%2F174817&quot; title=&quot;【備忘】crontabでdateコマンド(正確には”%”)を使おうと思ったらハマった - Geecul&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/youzine/20210718/20210718174123.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-18 17:48:17</published>
  <title>【備忘】crontabでdateコマンド(正確には”%”)を使おうと思ったらハマった</title>
  <type>rich</type>
  <url>https://www.geecul.com/entry/2021/07/18/174817</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
