aspose file tools*
The moose likes Linux / UNIX and the fly likes Unix/windows - sh/bat file problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Unix/windows - sh/bat file problem" Watch "Unix/windows - sh/bat file problem" New topic
Author

Unix/windows - sh/bat file problem

kayanaat sidiqui
Ranch Hand

Joined: Sep 04, 2008
Posts: 122
Hi,

I am using batch this batch file-




Also this sh file-



Both of these files were working fine until i introduced "CONFIG_ROOT".

if i am putting in batch file this way it's doing fine--
-DConfigRoot="c:/settings" -

Can you please tell me what i am missing?

Thanks,
Kaya.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8715
    
    6

The '$' dereferences environment variables in Unix shells. The leading and trailing '%' dereferences the same in Windows. You have it right with every other variable in your script.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
kayanaat sidiqui
Ranch Hand

Joined: Sep 04, 2008
Posts: 122
Yes Jo, Its working fine.

Thanks for your reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unix/windows - sh/bat file problem
 
Similar Threads
Remote Debugging using Jbuilder X and Jboss 3.2.x
JBOSS AS5 fails to start with jdk6
error starting up 2nd instance of tomcat
run java code through bat file
Running JBoss-5.1.0.GA as a service on Red Hat?