<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masasuz</author_name>
  <author_url>https://blog.hatena.ne.jp/masasuz/</author_url>
  <blog_title>目の前に僕らの道がある</blog_title>
  <blog_url>https://blog.masasuzu.net/</blog_url>
  <categories>
    <anon>linux</anon>
  </categories>
  <description>今まで下記のようにexecで標準出力と標準エラー出力を作業ログに残すという事をしてたんですが、実際に打ったコマンドは出力されないので、ちょっと不便だなーと思ってました。 exec &gt; &gt;(tee --append /tmp/$(date +&quot;%Y.%m.%d&quot;)_$(id --user).work.log) 2&gt;&amp;1 ちょっと調べて見るとscriptコマンドを使うとコマンドを含めて出力できることを知りました。 これで作業ログを残すのがはかどる! script --append --flush /tmp/$(date +&quot;%Y.%m.%d&quot;)_$(id --user).work.log チームメ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.masasuzu.net%2Fentry%2F2014%2F03%2F25%2F102557&quot; title=&quot;エンジニアでもターミナル作業ログを残したい!! - 目の前に僕らの道がある&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>2014-03-25 10:25:57</published>
  <title>エンジニアでもターミナル作業ログを残したい!!</title>
  <type>rich</type>
  <url>https://blog.masasuzu.net/entry/2014/03/25/102557</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
