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 > db2cmd run in background

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-06, 22:30
chemaster chemaster is offline
Registered User
 
Join Date: Feb 2006
Posts: 13
db2cmd run in background

Here is a sample of one of my batch files.

echo off
cls
del stats.txt
db2cmd /c db2 -f stats.ddl -z stats.txt

The batch file only opens for 1/10 of a second. However, the CLP windows stays up until the query is completed which takes about 5 seconds.

Is there a way of preventing the CLP window from opening (or minimized) and instead run in the background?

Windows 2000 Server / DB2 UDB Version 8.1

Last edited by chemaster; 02-22-06 at 22:37.
Reply With Quote
  #2 (permalink)  
Old 02-23-06, 05:04
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
I use command:
Code:
db2cmd /c /w /i db2 -f stats.ddl -z stats.txt
This commands suppreses new window, but still one window is visible. For more info about db2cmd command please see DB2 Command Window Command help

Hope this helps,
Grofaty
Reply With Quote
  #3 (permalink)  
Old 02-27-06, 03:36
gardenman gardenman is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
use db2clpex.exe instead of db2cmd
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