• 追加された行はこの色です。
  • 削除された行はこの色です。
* RemoteCommand [#fb91f47c]

** RemoteCommandとは? [#u6d28457]
SSHログイン後に、シェル(/bin/bash等)の代わりに実行するコマンド。

** GUIで指定する [#h1de406e]
- PuTTY Configurationダイアログを開く。
- 通常の接続設定を行う。
- "Connection"->"SSH"を選ぶ。
- "Data to send to the server"の"Remote command"に以下のようにコマンドを設定する。
 touch 1.txt; touch 2.txt; ls -l
- この接続設定を開いてサーバに接続する。

** コマンドラインから指定する [#ybfa1180]
-  コマンドファイルを作成する:notepad.exe commands.sh
   touch 1.txt
   touch 2.txt
   ls -l
- -mオプションを付けて、サーバに接続する。
 plink.exe -m commands.sh 192.168.0.1



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS