[wplug-bsd] Verification of a dump archive?
Bill Moran
wmoran at potentialtech.com
Fri Dec 16 15:14:17 EST 2005
Larry Daberko <larry at daberko.com> wrote:
> Bill Moran wrote:
> >>
> >>Is there a way to skip the
> >> set owner/mode for '.'? [yn]
> >>question at the end of the restore? I'm tying to set up a shell script
> >>to verify archives.
> >
> >
> > The man page for my 5.4 systems says that -y will automatically answer
> > this for you. I don't remember for sure if this option translates to
> > other versions.
> >
> I have 5.3. The -y only autoanswers error prompts, if any. It doesn't
> answer the set mode question. I've tried that already :-(
>
> I was wondering if something else could handle that part? Expect or
> similar?
expect should work, although I have little experience with it.
You may be able to use yes(1) to bypass it. Perhaps
yes | restore <options>
or something similar.
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
More information about the wplug-bsd
mailing list