troubleshooting Question

java command line scripting

Avatar of liyy
liyy asked on
JavaShell Scripting
4 Comments1 Solution294 ViewsLast Modified:

Java expert please help.

I have a java command running Mac OS X Server platform and I don't want a staff run command line as they just a user

the command line program requires 3 variables, file1.doc file2.doc and outputfile.doc, sample like below:

java -jar xxxx.jar compare "file1.doc"  "file2.doc"  "outputfile.doc"

How can I enable file1.doc and file2.doc variable so that user can type a script like:

program-script file1 file2 and automatically produce outputfile.doc.

file1 and file2 means that the filename are variable name.
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros