0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

script コマンドの代替としての StreamRelay.NET.exe

Last updated at Posted at 2017-05-26

UNIX 系にはコンソールでのコマンド実行の履歴が取れる script コマンドというのがある

オプション「-LoggingFile」でログが取れるので、それを指定することで、代替となる

ただし、シェルの便利な機能が使えない

script コマンドの代替としての StreamRelay.NET.exe

script outputLog.txt

StreamRelay.NET.exe -LocalPort 0 -RemotePort -1 -RemoteProgram cmd.exe -LoggingFile outputLog.txt

外部コマンド呼び出しのオプション

  • -LocalTempDirectory "DirectoryPath"
  • -RemoteTempDirectory "DirectoryPath"
  • -LocalArguments "args"
  • -RemoteArguments "args"

ロギング時のオプション

  • -Logging (標準出力へ出力)
  • -LoggingFile "Filename" (ファイルへ出力)
  • -LoggingCharSet "ChasetName" (ログへ出力する際の文字コード)

目次へ戻る

目次というか最初の一歩

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?