This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "batch file to shell script" Watch "batch file to shell script" New topic

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

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

How to change this batch file to shell script ?
Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

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

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
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    subject: batch file to shell script
    Similar Threads
    Two JVM on Same computer ??
    Problem with Installation of Luntbuild
    install JBoss+Rails beta on Ubuntu?
    package javax.servlet.http does not exist
    Error in starting Jboss through Command Prompt