passind date from shell script to java [message #306893] |
Mon, 17 March 2008 03:28 |
vanathi
Messages: 74 Registered: December 2007 Location: India
|
Member |
|
|
Hi,
I have a variable called asOfDate in shell script.
I need to pass it as a command line argument to a java command which will be called from the same shell script.
The format of that variable is "MM/DD/YYYY"
while doing echo, it is printing correctly in the java command.
ie. asOfDate="03/13/2008".
But inside the java program, it says an exception - parse error.
If we are running the java command in the command prompt by giving the asOfDate="03/13/2008" , it is running fine. Something wrong in the date given by the script.
Please advice. Thanks in advance.
|
|
|
|