Disk Storage ZFS Storage Appliance (MOSC)

MOSC Banner

CLI command asks for input- how to automate response?

edited Jul 11, 2011 9:15PM in Disk Storage ZFS Storage Appliance (MOSC) 2 commentsAnswered
 Hi- I'm writing a script that will destroy a snapshot in a share, but it asks for confirmation ("Y/N"). How can I script giving it the "Y" without requiring user input? I need my script to run unattended. The dialog looks like this:

zfs1:shares repl_test/test1 snapshots> script
("." to run)> run ('destroy ' + "20110108_000000_1294466400");
("." to run)> .
This will destroy this snapshot. Are you sure? (Y/N)


Thanks.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center