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.jar

Last updated at Posted at 2017-05-26

java.exe -Djava.security.policy=StreamRelay.policy -jar StreamRelay.jar

StreamRelay.bat

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

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

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

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

script outputLog.txt

java.exe -Djava.security.policy=StreamRelay.policy -jar StreamRelay.jar -LocalPort 0 -RemotePort -1 -RemoteProgram cmd.exe -LoggingFile outputLog.txt

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

  • -LocalEnvironment "name=value" : Environment for Bind Program
  • -RemoteEnvironment "name=value" : Environment for Bind Program
  • -LocalTempDir "path" : Temporary Directory for Bind Program
  • -RemoteTempDir "path" : Temporary Directory for Bind Program

ロギング時のオプション

  • -Logging (標準出力へ出力)
  • -LoggingFile "Filename" (ファイルへ出力)

目次へ戻る

目次というか最初の一歩

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?