<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a1026302</author_name>
  <author_url>https://blog.hatena.ne.jp/a1026302/</author_url>
  <blog_title>ものづくりのブログ</blog_title>
  <blog_url>https://a1026302.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Mac</anon>
    <anon>Python-エラー対応</anon>
  </categories>
  <description>Mac で Python のプログラムを cron から実行させようとしたところうまくいきません。 症状 crontab の設定内容 err.log の内容 問題点 回避方法 症状 crontab の設定内容 crontab の設定は以下の通りです。 0,30 * * * * /Users/{{user}}/.pyenv/shims/python /Users/{{user}}/Desktop/sample.py &gt;&gt; /Users/{{user}}/Desktop/err.log 2&gt;&amp;1 err.log の内容 以下のメッセージが出て処理が失敗していました。 python: can't o…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa1026302.hatenablog.com%2Fentry%2F2021%2F08%2F06%2F131523&quot; title=&quot;mac で cron を使おうとしたら「[Errno 1] Operation not permitted」というエラーが出てしまっとときの対応 - ものづくりのブログ&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/a/a1026302/20220118/20220118220054.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-06 13:15:23</published>
  <title>mac で cron を使おうとしたら「[Errno 1] Operation not permitted」というエラーが出てしまっとときの対応</title>
  <type>rich</type>
  <url>https://a1026302.hatenablog.com/entry/2021/08/06/131523</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
