Home » Infrastructure » Unix » passind date from shell script to java
passind date from shell script to java [message #306893] Mon, 17 March 2008 03:28 Go to next message
Messages: 74
Registered: December 2007
Location: India

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.
Re: passind date from shell script to java [message #306898 is a reply to message #306893] Mon, 17 March 2008 03:37 Go to previous message
Michel Cadot
Messages: 63937
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This is not an Oracle question.

Previous Topic: unable to change SID on 10g
Next Topic: not able to bring up the instance
Goto Forum:

Current Time: Thu Oct 27 18:32:24 CDT 2016

Total time taken to generate the page: 0.11139 seconds