The command line interface has two modes of operation, interactive and non-
interactive. To use the interactive mode, just run the command, to use the
non-interactive mode, run the command using command line arguments.
--------------------------------------------------------------------------------
Running CLI in non-interactive mode
In this mode, CLI single-line commands can be used in scripts. In addition
they can be used to easily configure a large number of hosts using standard
input:
ws_cli.exe < scenario.txt
To stop a scenario:
ws_cli.exe -r %SCEN% -m stop
Stop Scenario, Loop Until Stopped:
:_cli
cd/d "C:\Program Files\XOsoft\WANSync"
ws_cli.exe -I %REPL% | find "%SCEN%" >nul
if not errorlevel 1 (
ws_cli.exe -r %SCEN% -m stop 2>&1 >>%XLOG%
> nul ping -n 10 127.0.0.1
goto _cli
)
goto :EOF
--------------------------------------------------------------------------------
ws_cli.exe -h
XOsoft WANSync CLI v4.0.61 Usage:
-v version information
-I [hostname[:port]] - service state info
-r
-U [domain\]username:password
-R
-m
-T
-b
-t = {regular | backup}
Flags (without value):
-F File Synchronization
-B Block Synchronization
-Y Ignore files with the same size and modification time
-P Manual database processing
--------------------------------------------------------------------------------
ws_cli.exe -r "251to205_realtime" -m run -F -Y
--------------------------------------------------------------------------------