search cancel

for SCP type jobs, how can we 'escape' special characters that from part of a vendor's remote site directory?


Article ID: 212154


Updated On:


CA Workload Automation AE


We tested '\' escaping the special character and the SCP job fails flat.

The job has the following attribute that contains a special character, '&':

scp_remote_dir: "/tmp/110_NAV&Perf/R2.3/"


Release : 11.3.6

Component : CA Workload Automation System Agent


Change job definition and user ^ to escape &  and other special character as follow:
scp_remote_dir: "/LDFS/Openend/Tables/110_NAV&Perf/R2.3"
scp_remote_dir: /LDFS/Openend/Tables/110_NAV^&Perf/R2.3

Additional Information

SE findings:

Based on below Windows documentation, ^ should be used to escape & and other special characters.

Escaping cannot be handled in the product as it cannot differentiate whether the user wanted to use & as windows literal (like running multiple commands echo hello & dir) or if the user wanted to treat & as data in the file path.
We ran the inhouse tests and confirmed that it is working after following the Microsoft Windows escaping sequence for the special characters.