Hi
OS : AIX 5.3
DB : UDB v8.2
We use gzip to compree the file since we don't have enough space to store non-compressed file . Below is th way we use gzip
#!/usr/bin/ksh
/usr/sbin/mknod ${NAMEDPIPE} p
gzip -1 < NAMEDPIPE > EXPORT_FILE &
db2 "export to NAMEDPIPE of del select * from Test"
rm -f NAMEDPIPE
exit
The Problem with this after successful completion , script is not exiting ...if we see ps -ef it schell script still out there without doing anything , I suspect something to do with gzip when we invoke as back ground process,
I have tried diffrent approach
db2 "export to NAMEDPIPE of del select * from Test" &
gzip -1 < NAMEDPIPE > EXPORT_FILE
This approach seems to be working , But the major disadvantage with this is , if above db2 "export.... fails with some error message , script is hanging at gzip ....looks like it is waitting for some data to compress .
We cant export the file and then gzip as seperate process .
Any work arounds for above problem .
Thank you
dbadm