<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyamashiro</author_name>
  <author_url>https://blog.hatena.ne.jp/kyamashiro/</author_url>
  <blog_title>Vapor Trail</blog_title>
  <blog_url>https://kyamashiro.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>cronでPHPのタスクを定期的に起動したいが､すでにプロセスが動いている場合に起動しないようにしたい｡ PHPのタスクを実行する前に確認するタイプ &lt;?php /** * @param $process_command * @return bool */ public function checkDoubleProcess(string $process_command): bool { $output = []; exec(&quot;ps aux | grep -E \&quot;{$process_command}$\&quot; | grep -v sudo | grep -v grep&quot;, $output); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkyamashiro.hateblo.jp%2Fentry%2F2019%2F02%2F01%2F112150&quot; title=&quot;PHP プロセスの多重起動を防ぐやり方 - Vapor Trail&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>2019-02-01 11:21:50</published>
  <title>PHP プロセスの多重起動を防ぐやり方</title>
  <type>rich</type>
  <url>https://kyamashiro.hateblo.jp/entry/2019/02/01/112150</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
