<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>duplicate1984</author_name>
  <author_url>https://blog.hatena.ne.jp/duplicate1984/</author_url>
  <blog_title>duplicate</blog_title>
  <blog_url>https://duplicate1984.hateblo.jp/</blog_url>
  <categories>
    <anon>Useful Tips</anon>
    <anon>Useful Tips</anon>
  </categories>
  <description>ログを取得するツールを仕事で使っているのですが、 このあいだ上司がPowerShellで、ぱぱっとなんか書いて、三秒おきにログを標準出力するようにコマンドをたたいていました。 メモ撮る暇もなかったので、後から自分で調べました。 たとえば次のように書くと、三秒おきにコマンドラインをクリアして、現在の日時を表示するっていうコマンドになります。 While ($True) {date; Sleep 3; Clear} While ($True) で強制的に繰り返し処理。 date は現在日時表示 Sleep はコマンドの実行を指定した時間だけ中止するコマンド。今回は3秒を指定。 Clear でコマン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fduplicate1984.hateblo.jp%2Fentry%2F2017%2F08%2F30%2F223024&quot; title=&quot; PowerShellで一定間隔おきにコマンドを実行 - duplicate&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>2017-08-30 22:30:24</published>
  <title> PowerShellで一定間隔おきにコマンドを実行</title>
  <type>rich</type>
  <url>https://duplicate1984.hateblo.jp/entry/2017/08/30/223024</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
