Automic Workload Automation

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

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

    Posted 03-16-2017 01:51 PM
    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.jpghttps://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)

    d56e3yifm7ud.jpghttps://us.v-cdn.net/5019921/uploads/editor/jg/d56e3yifm7ud.jpg" width="1297">

    -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).

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