T.R | Title | User | Personal Name | Date | Lines |
---|
1521.1 | In addition... | HGOVC::NANDAN | | Mon Feb 24 1997 06:58 | 20 |
|
An additional problem I have discovered on actually trying to
pipe the output of 'exp', is that it does not work.
I tried to pipe the output of 'exp' to 'tar', but possibly because
of a wrong parameter given by me, it creates a local file.
For example, I tried -
$exp userid=scott/tiger file=- | tar cf /dev/rmt0h -
It creates a file called "-.dmp". I tried quoting that parameter,
for e.g-
'file=-' or file=(-) or file=\-.
From the Server Utility User's Guide, I am not able to find an
option to pipe out the output of 'exp'.
Thanks in advance.
Nandan
|
1521.2 | ? | USPS::FPRUSS | Frank Pruss, 202-232-7347 | Mon Feb 24 1997 08:58 | 5 |
| Is the "file" mandatory for exp? What happens if you leave it off
altogether?
FJP
|
1521.3 | EXPDAT.DMP | HGOVC::NANDAN | | Mon Feb 24 1997 20:00 | 7 |
|
Frank,
If you do not specify the "file" parameter, the default is to create a
file called EXPDAT.DMP in the current directory.
Nandan
|
1521.4 | an idea not really a solution | ALFAM7::GOSEJACOB | | Mon Mar 03 1997 07:42 | 14 |
| re .1 How about this procedure:
cd /usr/tmp
mknod datapipe p
exp userid=scott/tiger file=datapipe &
That will write the export to the named pipe 'datapipe'. But I'm afraid
this is no solution to your problem. Neither 'tar' nor 'cpio' can read
a stream of data from stdin and archive it. And tar'ing the named pipe
will only archive tha special file; not the stream of data that's
written to it. Looks like you have to 'exp' to a plain file and tar or
cpio that file to tape.
Martin
|
1521.5 | Thank you !! | HGOVC::NANDAN | | Sat Mar 08 1997 23:58 | 11 |
|
Martin,
Thank you for the idea. I find the 'exp' does accept this option &
sends data to the pipe. However,...
'tar' & 'cpio' expect a list of filenames to be piped to it. A
possibility is 'dd' which would just accept a stream of bytes. I need
to explore 'dd' some more.
Nandan
|