on Thu, 15 Feb 1996 17:30:32 -0800 (PST) Karl L. Swartz wrote:
> > > We would like to duplicate files from one AFS domain to another ...
>
> ...
>
> > For cpio, the suggestion is (not fully tested yet):
> > 1. create a named pipe (with mknod)
> > cd /tmp; /etc/mknod PIPE p; chmod 666 PIPE
> > 2. start first shell with first token to cpio into that pipe
> > ..... cd source_dir; find . -depth -print| cpio -o > /tmp/PIPE
> > 3. start second shell under second token (use pagsh?) cpio out of that pipe
> > ..... cd dest_dir;cpio -idm < /tmp/PIPE
>
> Since you're going from one domain to another, why bother with all
> this complexity? Just klog twice to get a token in each domain then
> do the copy with a normal pipeline, e.g.:
>
> ( cd source_dir; find . -depth -print| cpio -o ) |
> ( cd dest_dir;cpio -idm )
>
He is right and I in the meantime learned, that one can simply hold two tokens
for different cells in one session. With respect to this it's still more simple
to use cpio since this command has a built-in pipe. Just use:
cd source_dir; find . -depth -print| cpio -pdm dest_dir
Karl Behler [EMAIL PROTECTED]
ASDEX Upgrade, Plasmaphysik, Garching, Germany phone: ++49/89/3299-1351
--- One of Murphy's laws (?): If all else fails, read the instructions.