我需要转换为 shell 的批处理文件
我需要将以下批处理文件转换为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看逐个命令详细了解如何将 .bat 文件转换为 .sh 脚本
Check out this command by command breakdown on how to convert .bat files to .sh scripts