我需要转换为 shell 的批处理文件

发布于 2024-12-13 02:19:37 字数 2369 浏览 1 评论 0原文

我需要将以下批处理文件转换为 shell Linux 格式:

@echo off
setlocal

set CLASSPATH=.;C:\javalibs\OIM11GClient\oimclient.jar;C:\javalibs\WLClient10.3\wlfullclient.jar;.\dist\OIMWrapper.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\lib\spring.jar;C:\javalibs\OIM11GClient\lib\commons-logging.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\lib\eclipselink.jar;C:\javalibs\OIM11GExt\csv.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\jdbc\mysql-connector-java-5.0.5.jar;C:\javalibs\OIM11Gext\log4j-1.2.8.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11Gext\jakarta-commons\commons-lang-2.3.jar;C:\javalibs\OIM11Gext\jakarta-commons\commons-io-1.1.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\lib\commons-logging.jar
REM Properties and OIM Config

set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\conf
set SYSOPTS=-DXL.HomeDir=C:\javalibs\OIM11GClient -Djava.security.auth.login.config=C:\javalibs\OIM11GClient\conf\authwl.conf

REM set APIPATH=c:\javalibs\OIM11GLib\xlAPI.jar;c:\javalibs\OIM11GLib\xlDataObjectBeans.jar

REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterConnection %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterForms %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterITRes %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterLookup %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterProps %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterRecon -filename testrecon_userpolicy.csv
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterRetryReconEvent %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterRoles %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterUser %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterExternalDB
REM java %SYSOPTS% -cp %CLASSPATH%;%APIPATH% org.oimwrapper.api.tester.ClientTesterInternalDB
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tools.ImportExportResourceProperties -oper import -filename itresprops.txt
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tools.ImportExportResourceProperties -oper export
java %SYSOPTS% -cp %CLASSPATH%;%APIPATH% org.oimwrapper.api.tester.ShowRequestData %1

endlocal

非常感谢任何帮助,提前致谢。

I have the following batch file I need to convert to shell Linux format:

@echo off
setlocal

set CLASSPATH=.;C:\javalibs\OIM11GClient\oimclient.jar;C:\javalibs\WLClient10.3\wlfullclient.jar;.\dist\OIMWrapper.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\lib\spring.jar;C:\javalibs\OIM11GClient\lib\commons-logging.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\lib\eclipselink.jar;C:\javalibs\OIM11GExt\csv.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\jdbc\mysql-connector-java-5.0.5.jar;C:\javalibs\OIM11Gext\log4j-1.2.8.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11Gext\jakarta-commons\commons-lang-2.3.jar;C:\javalibs\OIM11Gext\jakarta-commons\commons-io-1.1.jar
set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\lib\commons-logging.jar
REM Properties and OIM Config

set CLASSPATH=%CLASSPATH%;C:\javalibs\OIM11GClient\conf
set SYSOPTS=-DXL.HomeDir=C:\javalibs\OIM11GClient -Djava.security.auth.login.config=C:\javalibs\OIM11GClient\conf\authwl.conf

REM set APIPATH=c:\javalibs\OIM11GLib\xlAPI.jar;c:\javalibs\OIM11GLib\xlDataObjectBeans.jar

REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterConnection %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterForms %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterITRes %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterLookup %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterProps %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterRecon -filename testrecon_userpolicy.csv
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterRetryReconEvent %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterRoles %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterUser %1
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tester.ClientTesterExternalDB
REM java %SYSOPTS% -cp %CLASSPATH%;%APIPATH% org.oimwrapper.api.tester.ClientTesterInternalDB
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tools.ImportExportResourceProperties -oper import -filename itresprops.txt
REM java %SYSOPTS% -cp %CLASSPATH% org.oimwrapper.api.tools.ImportExportResourceProperties -oper export
java %SYSOPTS% -cp %CLASSPATH%;%APIPATH% org.oimwrapper.api.tester.ShowRequestData %1

endlocal

Any help is highly appreciated, thanks a bunch in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文