The moose likes Java in General and the fly likes Read arguments from .csh file which is in next line thru Java class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Read arguments from .csh file which is in next line thru Java class

Balaji Soundarajan
Ranch Hand

Joined: Jan 23, 2009
Posts: 58
I am calling java class in .csh script file with command line arguments like Java storagesrv start -c - and I am validating the command line arguments in java class and if hyphen "-" is there in the command line argument then I have to read the value from next line in the csh file.

The csh file looks like

java storeSrv start -c -
dbs/formtek@vault


Need to read the dbs/formtek@vault value at runtime in storeSrv java class.
Kindly give me some idea to read the arguments which is in next line....
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

Please do not crosspost.

Continue in your other topic.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Read arguments from .csh file which is in next line thru Java class
 
Similar Threads
Passing Jave object arrays
Reading the arguments from .CSH file which is in next line at runtime thru java class
Get environment variables
Some code on Threads to work with
Help to use command Line argument with ant