aspose file tools*
The moose likes Linux / UNIX and the fly likes batch file to shell script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "batch file to shell script" Watch "batch file to shell script" New topic
Author

batch file to shell script

harshada patil
Ranch Hand

Joined: Mar 12, 2011
Posts: 96
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

Joined: Jan 03, 2004
Posts: 6109
    
    6

Moving to Linux/Unix. In the future, please CarefullyChooseOneForum.(⇐click)
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

Instead of --

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



  • "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
     
    Consider Paul's rocket mass heater.
     
    subject: batch file to shell script