Make a pipe process
mknod exp.pipe pStart the compress and pipe it in the background
gzip < exp.pipe > scott.exp.gz &
Wait a second or so before kicking off the export
Run the export command
nohup exp userid=scott/tiger file=exp.pipe ... &
That does the export. To import the file, do this:
Make a new pipe process, run the uncompress in the background and then run the import command
mknod imp.pipe p
zcat expdat.dmp.Z > imp.pipe &
imp system/password file=imp.pipe full=Y log=imp.log resumable=y resumable_name=impjob resumable_timeout=7200 buffer=5000000
This should be all you need.