<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Shell</anon>
  </categories>
  <description>ssh を使うので利用機会は無いと思うけど・・ リモートシェルの利用確認 リモート側でechoして接続確認。 #!/bin/sh rsh host &quot;echo test &gt; /dev/null&quot; if [ $? -n 0 ]; then echo &quot;Connection faild.&quot; 1&gt;&amp;2 exit 1 fi リモート先のログインシェルを強要する リモートシェルでコマンド実行する場合、リモートホスト側のログインシェルで実行される。Bシェルを強要したい場合は以下のようにする。 rsh host &quot;sh -c 'echo test'&quot; リモートコマンドの終了ステータス リモートシェルの終了ス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20100605%2F1275756354&quot; title=&quot;リモートシェルの終了ステータス - A Memorandum&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>2010-06-05 01:45:54</published>
  <title>リモートシェルの終了ステータス</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/20100605/1275756354</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
