<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>scientre</author_name>
  <author_url>https://blog.hatena.ne.jp/scientre/</author_url>
  <blog_title>メモ用紙</blog_title>
  <blog_url>https://scientre.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>Windows</anon>
  </categories>
  <description>&lt;?php function exec_async($command) { if (PHP_OS !== 'WIN32' &amp;&amp; PHP_OS !== 'WINNT') { exec($command . ' &gt;/dev/null 2&gt;&amp;1 &amp;'); } else { $fp = popen('start &quot;&quot; ' . $command, 'r'); pclose($fp); } } 解説 PHP_OS で Windows か UNIX 系 OS かを判断する（他の処理系については考えていない） UNIX 系 OS の場合、標準出力を /dev/null に捨て、バックグラウンドで実行 (&amp;) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fscientre.hateblo.jp%2Fentry%2F20120619%2Fexec_async&quot; title=&quot; Windows でも非同期で exec() - メモ用紙&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>2012-06-19 00:00:00</published>
  <title> Windows でも非同期で exec()</title>
  <type>rich</type>
  <url>https://scientre.hateblo.jp/entry/20120619/exec_async</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
