Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > cron jobs and perl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-04, 11:10
george77 george77 is offline
Registered User
 
Join Date: Oct 2004
Posts: 2
cron jobs and perl

hello all

i have a perl script that runs db backups on sybase. when i run this directly from the command line, it works fine. when i set up a cron job it brings back the error "ct_init(): network packet layer: internal net library error: Attempt to load protocol driver failed". it's not a problem with the library path(s) as as i mentioned, from the command line the scrip works fine. could anyone enlighten me as to how cron works (i.e. when it's run is it run in the user mode of the owner of the crontab file??) as i'm thinking it's some sort or permissions issue but can't see how to resolve it without knowing how cron works.

cheers for any help in advance
Reply With Quote
  #2 (permalink)  
Old 10-11-04, 16:10
John Richter John Richter is offline
Registered User
 
Join Date: Oct 2004
Posts: 3
cron runs in unique env

cron does not use the same environment. Try sourcing whatever env. file you normally use by placing a sourcing command in your cron job (. /fullpathtoenvfile)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On