Passing ampersand (&) in a property value
Posted: Thu Nov 25, 2004 12:07 pm
I am using a wrapped stage, which I have created for invoking wget command on Unix. I want to download a comma separated file from an http link. This http link contains a special character "&". I am using an escape character to run it properly on unix.
When I check the OSH for the job it displays two escape characters "\\"
OSH entry :
wget -o 'logfilepath/logfilename' 'http://server:port/dir/.../file.xml\\report=REPORTNAME'
On execution, the job fails with fatal error. It invokes the command and the log generated (logfilename) says it was trying to connect to ''http://server:port/dir/.../file.xml". Which is not correct as "&report=REPORTNAME" part of link is missing.
I have tried putting the link in single quotes, double quotes but it does not work.
Can someone provide some help.
Thanks.
When I check the OSH for the job it displays two escape characters "\\"
OSH entry :
wget -o 'logfilepath/logfilename' 'http://server:port/dir/.../file.xml\\report=REPORTNAME'
On execution, the job fails with fatal error. It invokes the command and the log generated (logfilename) says it was trying to connect to ''http://server:port/dir/.../file.xml". Which is not correct as "&report=REPORTNAME" part of link is missing.
I have tried putting the link in single quotes, double quotes but it does not work.
Can someone provide some help.
Thanks.