Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crontab causing problem

Status
Not open for further replies.

baashha

Programmer
Nov 11, 2001
4
MY
Hi,

I have a Unix Shell Script, that invokes an isql command to a Sybase Open Server. When I run it straight, it works very well. However, when I try it with a crontab, it gives me the following error:

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

I tried to add some Sybase paths but it still gives me the same error. Is it something to do with the path?

Baashha
 
Probably - jobs run from cron do not automatically inherit your environment. Check for other environmental settings that your user has.

One way round this is to have root's cron run a script and the script has an entry like this :-
su - user -c real_command

(substituting the correct user & command). Ayjaycee - the "A" in TandA

One by one, the penguins steal my sanity.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top