There are three different methods of executing commands from the Command Line client.
[root@server ~]# DTCL -i Command: login serve root ******* User access level set to DT_FULL_ACCESS Command: |
File Entry—Create a file with all of the scripting commands you want to run. Type the case-sensitive command DTCL –f filename where filename is the name of the file containing the scripting commands. For example, you might use the following three lines in your script. to log on to a machine and display its replication sets.
login server_name root *******;
source server_name;
repset list;
[root@server ~]#DTCL -f script User access level set to DT_FULL_ACCESS - List of rep sets - DataFiles enabled
[root@server ~]# |
Single Line Entry—Determine all of the scripting commands you want to run, and enter them in a single line (separated by semi-colons) at the command prompt using the case-sensitive command DTCL. For example, you might use the following command to log on to a machine and display its replication sets.
[root@server ~]# DTCL login server_name root password; source server_name; repset list User access level set to DT_FULL_ACCESS - List of rep sets - DataFiles enabled
[root@server ~]# |
If you are running the Command Line client single line entry in a Linux shell, you must escape the semi-colon and any quotation marks with a backslash to keep the shell from interpreting them as its own command separators. For example, you might enter the following command.
DTCL login \"server_name\" root \"password\"\; source \"server_name\"\; repset list\;
If you are running the Command Line client single line entry from a Windows client, the Windows command process (cmd.exe) strips two layers of quotation marks during processing. Therefore, any scripting command that you use that requires quotation marks must have three quotation marks around it. For example, if your machine name had a space in it, login "server name" username password would be sufficient for the Command Line client interactive entry or file entry. But for the Command Line client single line entry, you would have to use login """machine name""" username password.