This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: batch file to shell script
     
    Similar Threads
    Error in starting Jboss through Command Prompt
    Problem with Installation of Luntbuild
    Two JVM on Same computer ??
    install JBoss+Rails beta on Ubuntu?
    package javax.servlet.http does not exist