How to successfully execute JOBS with csh on the UNIX agent if the directory path has "#" character
.
For example, the agent is installed on /home/UC4/ae11/agent#112/bin.
In you JOBS, you use csh in the shell option of the UNIX tab.
https://us.v-cdn.net/5019921/uploads/editor/k7/fk59fgbreqs1.jpg" width="720">
If you execute this job, you will the following error message in the report:
/home/UC4/ae11/agent: Command not found.
This is not AE Server nor UNIX agent issue. It is a limitation csh.
For example, if you have the following script and execute it.
#! /bin/csh
cd /home/UC4/ae11/agent#112
pwd
echo TEST
exit $?
Result:
# ./test
/home/UC4/ae11/agent: No such file or directory.
In order to move forward with this issue, please do the following(please test it first on your test environment):
-Modify the HEADER.UNIX and TRAILER.UNIX as shown in the attached files(HEADER.jpg and TRAILER.jpeg)
UC_EX_JOB_MD=ucxjlx6m
-Then, in the UNIX tab of your JOBS, put -v on the Shell option field(attached file JOBS.jpeg).
Please note that you will only use the option -v if you are using csh as a shell.