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

Posted on 2006-04-10
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
    LVL 4

    Accepted Solution

    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

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now