CLI command asks for input- how to automate response?
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.
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.
0