11.01.2013 Views

View PDF - Njit.edu

View PDF - Njit.edu

View PDF - Njit.edu

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

obtool Invocation<br />

You can enter the commands described in Chapter 2, "obtool Commands" at the<br />

obtool prompt. Note that some commands provide an --nq option, which specifies<br />

that no confirmation message should be displayed after you execute the command. If<br />

you do not include the --nq option for these commands, then obtool prompts you<br />

for confirmation. You must enter one of the values shown in Table 1–3 at the<br />

confirmation prompt.<br />

In the prompt, the item in brackets ([...]) indicates the default if you do not reply to<br />

the prompt.<br />

Input Redirection in Interactive Mode<br />

In interactive mode, you can redirect input to a script containing multiple obtool<br />

commands. This technique is useful if you need to run the same series of obtool<br />

commands on a regular basis. The syntax is as follows, where pathname is the path<br />

name of a file containing obtool commands:<br />

ob> < pathname<br />

For example, you can create a file called mycommands.txt with the following<br />

content:<br />

# begin mycommands.txt<br />

lsdev --long<br />

lshost --long<br />

# end<br />

1-4 Oracle Secure Backup Reference<br />

You can redirect the obtool input to this script as follows:<br />

ob> < /home/mycommands.txt<br />

Exiting obtool<br />

Use the exit command to exit obtool, as shown in the following example:<br />

ob> exit<br />

obtool Noninteractive Mode<br />

Table 1–3 Values for Confirmation Message<br />

Value Meaning<br />

y Perform the operation on the object named in the query.<br />

n Do not perform the operation on the object named in the query and proceed to the<br />

next selection (if any).<br />

q Do not perform the operation on the object named in the query and stop processing<br />

this command immediately. Note that objects for which you have already answered y<br />

have been affected.<br />

a Perform the operation on the object named in the query and on all objects that the<br />

command has not yet included in a query. Note that objects for which you have<br />

already answered n will not be affected.<br />

? Display brief help text and then redisplay the prompt.<br />

To execute commands in obtool noninteractively, use the following syntax:<br />

obtool [ cl-option ]... command-name [ option ]... [ argument ]...

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!