There should already be a db2 startup script, but it isn't in the normal place. Look in the db2 directories for rc.db2 or something like that. It should be modifyable for your needs.
On Fri, 2003-09-19 at 09:49, Terry Spaulding wrote: > I need to write a script that automates the db2 start, stop, and force > application all. > > I have tried writing a script that will do the su to the db instance and > issue a db2stop and then exit. > > No luck in getting it correct. > > zVM, SuSE SLES7, DB2 UDB V8. > > If anyone has examples would you mind sharing them ? > > Thanks.......... > > Regards, > Terry L. Spaulding > IBM Global Services [EMAIL PROTECTED] -- Rich Smrcina Sr. Systems Engineer Sytek Services - A Division of DSG Milwaukee, WI rsmrcina at wi.rr.com rsmrcina at dsgroup.com Catch the WAVV! Stay for requirements and the free-for-all. Update your zSeries skills in 4 days for a very reasonable price. WAVV 2004 in Chattanooga, TN April 30-May 4, 2004 For details see http://www.wavv.org
