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.
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.
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.
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.