Modifying the Example Commands for Windows
All the examples in this guide use Unix command line syntax. If you are using mlcp with the Windows command interpreter, Cmd.exe
, use the following guidelines to construct equivalent commands:
Replace
mlcp.sh
withmlcp.bat
. You should always usemlcp.bat
on Windows; usingmlcp.sh
with Cygwin is not supported.For aesthetic reasons, long example command lines are broken into multiple lines using the Unix line continuation character “\”. On Windows, remove the line continuation characters and place the entire command on one line, or replace the line continuation characters with the Windows equivalent, “^”.
Replace option arguments enclosed in single quotes (') with double quotes ("). If the single-quoted string contains embedded double quotes, escape the inner quotes.
Escape any unescaped characters that have special meaning to the Windows command interpreter.
For example, the following Unix command line:
$ mlcp.sh import -host localhost -port 8000 -username user \ -password passwd -input_file_path /space/bill/data -mode local \ -output_uri_replace "/space,'',/bill/data/,'/will/'" \ -output_uri_prefix /plays
Corresponds to this Windows command line:
C:\Example> mlcp.bat import -host localhost -port 8000 -username user ^ -password passwd -input_file_path c:\space\bill -mode local ^ -output_uri_replace "/c:/space,'',/bill/data/,'/will/'" ^ -output_uri_prefix /plays