I though about using 'tee' but can't find a proper syntax:
dd if=/dev/hdb of=- | tee (some pipe to dd) | dd if=- of=/dev/hdc
I also thought about something like:
mkfifo f1 f2 f3
dd if=f1 of=/dev/hdc &
dd if=f2 of=/dev/hdd &
dd if=f3 of=/dev/hde &
dd if=/dev/hdb of=- | tee f1 f2 | f3
But it's the 1st time I try to use fifos and there must be something fully
wrong in my understanding of them.
--
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
http://www.gdargaud.net/
"To ruin the net to save Disney is the equivalent of burning down the
library of Alexandria to save monastic scribes."
"Guillaume Dargaud" <USENET...@gdargaud.net> wrote in message
news:3eb6...@news.ColoState.EDU...
> I though about using 'tee' but can't find a proper syntax:
> dd if=/dev/hdb of=- | tee (some pipe to dd) | dd if=- of=/dev/hdc
tee's argument can't be "some pipe to dd". Tee expects a file name
argument.
> I also thought about something like:
> mkfifo f1 f2 f3
> dd if=f1 of=/dev/hdc &
> dd if=f2 of=/dev/hdd &
> dd if=f3 of=/dev/hde &
> dd if=/dev/hdb of=- | tee f1 f2 | f3
dd if=/dev/hdb of=- | tee f1 f2 f3
is probably what you wanted to do here.
--
Akop Pogosian
This space has been accidentally left blank.
If you're using bash you can abbreviate this as:
dd if=/dev/hdb of=- | tee >(dd of=/dev/hdc) >(dd of=/dev/hdd) >(dd of=/dev/hde)
--
Barry Margolin, barry.m...@level3.com
Genuity Managed Services, a Level(3) Company, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
--
bill marcum the mushroom-eating laboratory monkey
What kind of monkey are you? http://thesurrealist.co.uk/monkey.cgi
Although I found a simpler solution:
dd if=/dev/hdb | tee /dev/hdc /dev/hdd > /dev/hde
But it takes bloody forever to execute: I'm doing 6 drives at the same time
and I think it's gonna take about 12 hours. Haven't tried optimizing the
block size though.
--
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
http://www.gdargaud.net/
"Seeing a murder on television...will help work off one's antagonisms. And
if you haven't any antagonisms, the commercials will give you some." —
Alfred Hitchcock
In the 6th Edition Unix (1974) version of dd,
you can simply omit "if=" or "of="
to use standard input and output. So what else is new?
carl
--
carl lowenstein marine physical lab u.c. san diego
clow...@ucsd.edu