autorep command in the script

I have created UNIX script for getting information for the autosys jobs using autorep command.

Job_name=temp_job1
echo $Job_name
autorep -j $job_name -l0

After running the script I am getting the below error

Error while loading shared libraries: libautoeac_api.so: cannot share object files: No such a file or directory.

I can see the the autorep command in the unix server .

/autosys/bin/
i can see the autorep command. but i am unable to execute in the sheel script.

There must be something amiss with your "LD_LIBRARY_PATH" shell environ. Try:

% echo $LD_LIBRARY_PATH

... in your login shell and as the first line in your shell script to compare the values.
Secondly, search your system for the file:

find / -name libautoeac_api.so\* -print

And add that directory path to your LD_LIBRARY_PATH variable.
Oh. And failing that, check the search permissions on directories, and read permissions on the libraries.