Now I have tested some scripts with 9.1:
Burkhard Schultheis schrieb:
An here is the problem:
> db2Command ()
> {
[quoted text clipped - 8 lines]
> fi
> }
If I change it to
db2Command ()
{
db2 "$1"
}
then I got no extra processes!
Any idea why? As I wrote, on AIX with V7.x it was ok with the original
script!
Regards,
Burkhard
Lennart - 21 Dec 2007 12:04 GMT
On Dec 21, 9:45 am, Burkhard Schultheis <schulth...@tde-online.de>
wrote:
[...]
> Any idea why? As I wrote, on AIX with V7.x it was ok with the original
> script!
Not really. But you might be able to track your problem by executing
your script with -x (or add -x to the first line in your script as in
#!/bin/sh -x)
/Lennart
Ian - 22 Dec 2007 05:31 GMT
> Now I have tested some scripts with 9.1:
>
[quoted text clipped - 24 lines]
> Any idea why? As I wrote, on AIX with V7.x it was ok with the original
> script!
The difference here is that using the backticks causes the db2 command
to execute in a different shell.
Therefore, each time you execute db2Command(), the 'db2' command will
create a separate db2bp. Normally, when the shell goes away, the db2bp
process automatically goes away -- so it would seem that something is
awry here.