开发者

Convert Batch file to Linux Shell script

How to convert following batch file code to Linux shell script?

@echo off
set TOOL_PATH="C:\Tool"

set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_05"

echo $: Starting Tool

%JAVA_HOM开发者_开发技巧E%\bin\java -jar %TOOL_PATH%\Updater.jar -config %TOOL_PATH%\config\config.properties

Thanks in advance!


#!/bin/sh

TOOL_PATH=/tool

JAVA_HOME=/opt/java/jdk1.6.0_05

echo "Starting Tool"

$JAVA_HOME/bin/java -jar $TOOL_PATH/Updater.jar -config $TOOL_PATH/config/config.properties

But you may have to change the actual paths.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜