• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

batch file to shell script

 
harshada patil
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one batch file to execute my java application, in which i am setting some system propperties as given below:
set ABCD_USERNAME=-Dabcduser="harsha_p"
set ABCD_PASSWORD=-Dabcdpwd="UJclDzbjshjkjmlkPNnsaalq"


and then
set JAVA_OPTS=%JAVA_OPTS% %QUAD_ABCDNAME% %ABCD_PASSWORD%


and then
java %JAVA_OPTS% -classpath %CLASSPATH% main


How to change this batch file to shell script ?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Linux/Unix. In the future, please CarefullyChooseOneForum.(⇐click)
 
Anand Hariharan
Rancher
Posts: 272
C++ Debian VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of --

  • set, say export.
  • %foo%, say $foo


  •  
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic