bobby_tamayo_automic

How to successfully execute JOBS with csh on the UNIX agent if the directory path has "#" character

Discussion created by bobby_tamayo_automic on Mar 16, 2017
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.

fk59fgbreqs1.jpg

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)

vc77jtde420a.jpg

d56e3yifm7ud.jpg

-Modify the parameter  UC_EX_JOB_MD and makes sure put the full name of the job messenger binary as shown below:

UC_EX_JOB_MD=ucxjlx6m

-Then, in the UNIX tab of your JOBS, put -v on the Shell option field(attached file JOBS.jpeg).
4h9h4g0xk9sp.jpg

Please note that you will only use the option -v if you are using csh as a shell.



Outcomes