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 > What goes into stdout and what into stderr?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-24-04, 04:32
vandana_pv vandana_pv is offline
Registered User
 
Join Date: Feb 2003
Location: India
Posts: 10
Question What goes into stdout and what into stderr?

Hi,

I want to know what goes into stdout and what goes into stderr in the case of db2 commands. I had noticed everything going into stdout only. Some errors which I expected would go to stderr have also landed in stdout.

Can somebody please help me out with this. Or direct me to a place where I can get this info.
Reply With Quote
  #2 (permalink)  
Old 12-24-04, 09:12
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
What is the name of the program you are executing? Do you think we are mind readers?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 12-24-04, 16:56
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
db2 command though a unix command, seems to have one output ; which you capture by -o out option are appending '>out ' after the command. If you think of db2 as a script, it does what ' su - db2inst1 "-c smscrpt 1>out 2>>1"
does.
__________________
mota
Reply With Quote
  #4 (permalink)  
Old 12-25-04, 09:48
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I beleive that the original poster is using DB2 for OS/390.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 12-26-04, 06:34
vandana_pv vandana_pv is offline
Registered User
 
Join Date: Feb 2003
Location: India
Posts: 10
Hi,

I am sorry if the question wasn't clear. I am not looking for any specific command. I want to know in general (for any db2 command) what is supposed to go into its stdout and what is supposed to go into its stderr. I have a situation where I need to work on the stdout and stderr of any db2 command and process it in someway. For this I need to know what kind of messages go into its output and what kind of messages go into its stderr. Messages which I expected to go to the command's stderr also landed in its stdout. So I was wondering if there's documentation somewhere which talks about what kind of failures leave info in stdout and what kind of failures leave info in stderr.
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