Getting an error whilie i run a job from autosys in linux


   i am running a job from autosys which fethces the data from sysbase through isql..the command is some thing like this in the job (.sh file)
/opt/sybase/bin/isql -U otgcc_su -P abcd9098 -S DATASVCS  -e -n -w 200 -s  < m_nbr.sql > ../DATA/m_nbr.txt;

i get the ff err

   CS-LIBRARY error:
        ct_init(): network packet layer: internal net library error: Attempt to load protocol driver failed
Attempting to obtain a localized error message failed.

  The thing is that if i run the command from linux command promt it runs fine..but if i run the job from autosys it fails..can some one helpp


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This happens usually when the path settings are wrong or missing. Automated (cron) jobs usually don't have the path settings you have as root or some other user. The full paths are set in /etc/profile, which is run only when you log in.
An automated (cron) job doesn't log in, so you have to specify the path in the job script. So put the command in a script, preceded by the correct path statement and call the script from autosys.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.