If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Shell script from DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-08, 10:04
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Shell script from DB2

DB2 8.2 on Linux.

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


T.I.A
Reply With Quote
  #2 (permalink)  
Old 01-22-08, 10:38
anu_chiluka anu_chiluka is offline
Registered User
 
Join Date: Dec 2006
Posts: 17
Have you tried Task Center
Reply With Quote
  #3 (permalink)  
Old 01-22-08, 11:32
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You can also use cron.

Andy
Reply With Quote
  #4 (permalink)  
Old 01-24-08, 11:31
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
We don't want to use cron but how do you set it up from task center ?

Thanks again.
Reply With Quote
  #5 (permalink)  
Old 01-26-08, 05:37
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
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/
Reply With Quote
  #6 (permalink)  
Old 01-26-08, 07:02
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
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
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development

Last edited by stolze; 01-26-08 at 07:06.
Reply With Quote
  #7 (permalink)  
Old 01-26-08, 08:24
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
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/
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

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