当前位置: 技术问答>linux和unix
如何将windows下的bat文件改成unix下的sh文件啊
来源: 互联网 发布时间:2016-01-29
本文导语: @echo off title 通讯 java -cp ./lib/classes12.jar;./lib/saaj-impl.jar;./lib/saaj-api.jar;./lib/dom.jar;./lib/xercesImpl.jar;./lib/mail.jar;./lib/activation.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xmlParserAPIs.jar;./lib/db2java.zip;./post.jar com.company.post.postMaster...
@echo off
title 通讯
java -cp ./lib/classes12.jar;./lib/saaj-impl.jar;./lib/saaj-api.jar;./lib/dom.jar;./lib/xercesImpl.jar;./lib/mail.jar;./lib/activation.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xmlParserAPIs.jar;./lib/db2java.zip;./post.jar com.company.post.postMaster ConfigFile=post.cfg
@echo on
title 通讯
java -cp ./lib/classes12.jar;./lib/saaj-impl.jar;./lib/saaj-api.jar;./lib/dom.jar;./lib/xercesImpl.jar;./lib/mail.jar;./lib/activation.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xmlParserAPIs.jar;./lib/db2java.zip;./post.jar com.company.post.postMaster ConfigFile=post.cfg
@echo on
|
java -cp 后面的不同path 之间用: 连接,而不是 ;
|
#!bash
echo 通讯
java -cp ./lib/classes12.jar;./lib/saaj-impl.jar;./lib/saaj-api.jar;./lib/dom.jar;./lib/xercesImpl.jar;./lib/mail.jar;./lib/activation.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xmlParserAPIs.jar;./lib/db2java.zip;./post.jar com.company.post.postMaster ConfigFile=post.cfg
echo 通讯
java -cp ./lib/classes12.jar;./lib/saaj-impl.jar;./lib/saaj-api.jar;./lib/dom.jar;./lib/xercesImpl.jar;./lib/mail.jar;./lib/activation.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xmlParserAPIs.jar;./lib/db2java.zip;./post.jar com.company.post.postMaster ConfigFile=post.cfg