Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2004
    Posts
    268

    Unanswered: Shell script from DB2

    DB2 8.2 on Linux.

    Is there a way to execute/schedule a shell script from DB2 ?


    T.I.A

  2. #2
    Join Date
    Dec 2006
    Posts
    17
    Have you tried Task Center

  3. #3
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    You can also use cron.

    Andy

  4. #4
    Join Date
    Oct 2004
    Posts
    268
    We don't want to use cron but how do you set it up from task center ?

    Thanks again.

  5. #5
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    1,126
    Related question: is it possible to write a trigger which will call a shell script (like e.g. sending an email)?
    --_Peter Vanroose,
    __IBM Certified Database Administrator, DB2 9 for z/OS
    __IBM Certified Application Developer
    __ABIS Training and Consulting
    __http://www.abis.be/

  6. #6
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    Triggers: Yes, you can do that easily by implementing an external UDF or procedure. The trigger can simply invoke this external routine.

    Operating system commands in general: http://www.ibm.com/developerworks/db...303stolze.html
    Last edited by stolze; 01-26-08 at 08:06.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  7. #7
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    1,126
    Quote Originally Posted by stolze
    Operating system commands in general: http://www.ibm.com/developerworks/db...303stolze.html
    Thanks! Very interesting page indeed!
    --_Peter Vanroose,
    __IBM Certified Database Administrator, DB2 9 for z/OS
    __IBM Certified Application Developer
    __ABIS Training and Consulting
    __http://www.abis.be/

Posting Permissions

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