Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    26

    Unhappy Unanswered: Getting DB2 Command to run in Cron

    I have a script to export a table into a delimited file then ftp to a drop zone. I can run this script manually and everything goes fine. The script has two db2 commands....

    db2 connnect to 'database'
    db2 "export ......"

    When I try to run this script through cron, my output file says "db2 not found". How do I get this to execute? Thanks.

    DB
    Dogboy

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    Run it through cron as the instance owner, or load the instance profile.

    HTH

    Andy

  3. #3
    Join Date
    Mar 2003
    Posts
    343
    in your script, first execute $insthome/sqllib/db2profile

Posting Permissions

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