0

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_HOME%\bin\java -jar %TOOL_PATH%\Updater.jar -config %TOOL_PATH%\config\config.properties

Thanks in advance!

1 Answer 1

1
#!/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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.