Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004

    Unanswered: 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

  2. #2
    Join Date
    Oct 2004

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts