2

I am trying to convert a shell script to a batch file line by line and command by command. However, I cannot seem to get around the following line. Any help appreciated.

OPTS="%OPTS -Dlog4j.configuration=file:.\log4j.properties"
1
  • 1
    It appears to be syntax for an executable: is it available in the target system? Some extra context may help too. Commented Apr 22, 2013 at 4:43

1 Answer 1

2

I don't know linux shell but I think the equivalent is this:

Set "OPTS=-Dlog4j.configuration=.\log4j.properties"

Then you can load the stored ...Options¿? like an argument:

Start Application.exe %OPTS%

".\" means the current directory of your script, ensure if "file:.\" means the same in linux OS.

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.