Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2006-04-10
Medium Priority
Last Modified: 2012-05-05

   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


Question by:bharat_tcs
1 Comment

Accepted Solution

bobgunzel earned 800 total points
ID: 16424681
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.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month20 days, 21 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question