
Batch file for Windows computers (runWin.bat)
java -classpat
h "./lib/JSanExport.jar;./lib/JSanRmiServer.jar" -Dmd.command=command.txt
-Dmd.logpath=log sanproject.getmondat.RJMdMain
pause
Batch file for UNIX computers (runUnix.bat)
#! /bin/sh
java -classpath "./lib/JSanExport.jar:./lib/JSanRmiServer.jar" -Dmd.command=command.txt
-Dmd.logpath=log sanproject.getmondat.RJMdMain
Note:
The symbol indicates the end of a command line.
Figure 39 Scripts in Batch Files
If the
computer that runs the Export Tool communicates directly with the SVP, you usually do not need to
change scripts in runWin.bat and runUnix.bat. However, you might need to edit the java command script
in your text editor in some occasions, for example:
• if thenameofyourcommand file is not command.txt
• if yo
u moved your command file to a different directory
• if you do not want to save log files in the log directory
• if youwantto namelog files as you like
If the computer that runs the Export Tool communicates with the SVP via a proxy host, you need to edit the
jav
a command script in your text editor. When editing the java command script, you need to specify the
ho
st name (or the IP address) and the port number of the proxy host. For example, if the host name is
Jupiter and the port number is 8080, the resulting command script as shown in Figure 40 on page 92:
Ba
tch file for Windows computers (runWin.bat)
java -classpath "./lib/JSanExport.jar;./lib/JSanRmiServer.jar" -Dhttp.proxyHost=Jupiter
-Dhttp.proxyPort=8080 -Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
pause
Ba
tch file for UNIX computers (runUnix.bat)
#! /bin
/sh
java -classpath "./lib/JSanExport.jar:./lib/JSanRmiServer.jar" -Dhttp.proxyHost=Jupiter
-Dhttp.proxyPort=8080 -Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
Note:
The symbol indicates the end of a command line.
Fi
gure 40 ScriptsinBatch Files(When Specifying theHostName of a ProxyHost)
If the IP address of the proxy host is 158 . 211.122.124 and the port number is 8080,the resulting
command script is as follows:
Batch file for Windows computers (runWin.bat)
java
-classpath "./lib/JSanExport.jar;./lib/JSanRmiServer.jar" -Dhttp.proxyHost=158.211.122.124
-Dhttp.proxyPort=8080 -Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
paus
e
Batch file for UNIX computers (runUnix.bat)
#! /bin/sh
java -classpath "./lib/JSanExport.jar:./lib/JSanRmiServer.jar" -Dhttp.proxyHost=158.211.122.124
-Dh
ttp.proxyPort=8080 -Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
Note:
The symbol indicates the end of a command line.
Figure 41 Scripts in Batch Files (When Specifying the IP Address of a Proxy Host)
For detailed information about syntax of the java command, see
“Java Command for Exporting Data In Files” on page 119.
92
Using the Export Tool
Comentários a estes Manuais