Revolving around the core of technology
SynaManCLI.exe <Param1Name> <Param1Value> ... <ParamNName> <ParamNValue>OR
java -jar SynaManCLI.jar <Param1Name> <Param1Value> ... <ParamNName> <ParamNValue>
-Name Value
Refers to relative or absolute path on the client machine. It refers to a folder name if operation is download
, downloadFolder
or uploadFolder
.
It refers to a file if operation is upload
.
This parameter defines the operation you want to perform. The value portion of this parameter can either take a case-insensitive work or a case-sensitive single letter. Valid values are:
User's password
Refers to the URL where SynaMan is running. For example: http://yourServer.com:6060 or https://secure.yourServer.com
Refers to the shared folder name. This MUST refer to an existing shared folder name. Use $HOME to specify user's home folder.
Relative path on the SynaMan server with respect to the shared folder name. This refers to a folder name if operation is upload, uploadFolder or downloadFolder. It is a file if the path is downloadFolder.
User's login ID
If -gullible is passed as a parameter, SynaMan CLI will ignore invalid or non-trusted certificates on secure ports. This is useful if your attempting to access a SynaMan running on HTTPS with an expired or invalid certificate.
SynaManCLI -o upload -s https://myServer -u John.Doe@xyz.com -p secret007 -shf "Important Files" -spath "Project 1/JohnD" -lpath POC.doc
SynaManCLI -o download -s https://myServer -u John.Doe@xyz.com -p secret007 -shf "Important Files" -spath "Project 1/JohnD/POC.doc" -lpath C:\temp
SynaManCLI -o uploadFolder -s https://myServer -u John.Doe@xyz.com -p secret007 -shf "Important Files" -spath "Project 2/JaneD" -lpath C:\MyProjectFiles
SynaManCLI -o downloadFolder -s https://myServer -u John.Doe@xyz.com -p secret007 -shf "Important Files" -spath "Project 3" -lpath C:\MyProjectFiles
space
or punctuations
, for password. In such cases, you will have to follow the rules of your
operating system on how to use these characters. Consider the examples below that show the use of the password argument.
-p Hello""WorldIn the above example, there is 1 double-quote between Hello and World. However, you will have to specify that twice. The first is used as a escape character.
-p "%%q,{e@hV(?>!D"
This is a more complex example with multiple special characters. The actual value for the password is %q,{e@hV(?>!D
. Notice it contains a %
sign
and a >
character within the password. Both are special cases since they have a special meaning when used in scripts on Windows operating system. Two changes
are required in order to use these values:
%
sign is specified twice, similar to example 1.