Closed AndreasRentschler closed 2 months ago
As suggested by @VDanielEdwards, an alternative to introduce option `--interactive' is to deploy a Windows batch script which pauses our utilities after execution, for example:
run-and-pause.cmd
@echo off
if ["%~1"]==[""] goto usage
%* && pause || pause
exit /b %errorlevel%
goto :eof
:usage
@echo Execute a command line program and then prompt the user to press a key.
@echo Usage: run-and-pause ^<executable^> ^[^<argument1^> ^[^<argument2^> ...^]^]
exit /b 1
Downside: When the user uses [Ctrl+C]
to signal the executed tool to shutdown, the signal is subsequently forwarded to Windows cmd, which asks to Terminate batch job (Y/N)?
. This behavior cannot be suppressed to my knowledge.
Subject
Commandline utilities Registry, Monitor and System Controller behaved differently for the user:
Description
Changes:
Instructions for review / testing
Things to check
LogFromRemotes: true
and participants logging to it viaRemote
sink.-h
of System Controller, Monitor and Registry: Same as on the updated page of our documentation? None of the deprecated options--non-interactive
and--signal-handler
listed?[Ctrl-C]
: Should work-i
: When active, is there a prompt on start to press[Ctrl-C]
to shutdown, and another prompt to press[Enter]
after shutdown, allowing to read all text? Does[Enter]
terminate the process? (Note: Monitor keeps forwarding remote log even after termination)sil-kit-system-controller --non-interactive
andsil-kit-registry --signal-handler
still accepted but ignored when used?Developer checklist (address before review)