Hi everyone
I have the follow shell script to connect to a DB2 database .
#!/bin/sh
db2 "connect to dbname user dbuser "
the db2 sentence generate a connection to DB2. I need know who i can get the PID of these connection on the same shell scripts.
I try whit $! but show nothing ..
#!/bin/sh
db2 "connect to dbname user dbuser "
echo $!
Thankyou