Ufsrestore in Shell Script

Hi Guys !!

I am trying to use "ufsrestore xvf dump.dmp filename1, filename2" command in shell script to restore selective files from ufsdump dump.

I want to restore non-interactively. So that once the file is executed it should restore without asking

1. Volume Number - Specify next volume #: 1

2. On restore - set owner/mode for '.'? [yn] n (I want this default as YES

Your time and necessary help is really appreciated.

Thanks in advance.

Muk

Your

[514 byte] By [MuksDwale] at [2007-11-25 23:34:38]
# 1

ufsrestore {all kinds of options and parameters} <<-ENDHERE

1

y

ENDHERE

This is a standard UNIX-construct called a "here-file", the everything up to the "ENDHERE" is offered to the command as standard input.

For "ENDHERE" You can choose any word You want, this is the standard I use, but You will see things like "EOF" &c in other scripts.

The "-" means that leading tabs are stripped from the input-lines and the final word, useful to retain indenting in scripts.

MV_de_Jong at 2007-7-5 18:19:21 > top of Java-index,General,Talk to the Sysop...