|
From: Roland G. <r.g...@xs...> - 2001-07-24 10:58:16
|
> Since you're interested, this is the guts of what I am trying to do:
>
> spawn("rsh machine dump_cmd various args... mount-point |cat -|dd bs=64k of=tape-device");
>
> then use expect to catch the message:
> "End of tape reached. Press RETURN when new tape loaded ..."
> (message varies depending on the dump software - yes, I'm doing this
> from multiple machines/OSes/dump commands, each with different
> idiosyncrasies, arguments, etc...)
>
> When I get the expect message, I call a sub to change tapes using the
> tape robot. That's the plan anyway. :)
Oh, OK, that's a perfectly valid use for Expect... :-)
BTW, what's the use of that noop-cat inside that pipe? 'dd' already does
all the buffering you need...
Good luck with that project!
Roland
--
RGi...@cp...
|