This post is more than 5 years old
2 Posts
0
846
February 25th, 2008 08:00
Snapview scripting - removing a snapshot
I have a script that will remove the snapshots, but it prompt the user for confirmation of the removal. Since I want the process to be fully automated as part of our backup strategy having it prompt for confirmation causes the automated process to fail.
For the time being I have been just running the script and hitting Y when prompted. Is there a way to run the command without that user input?
For the time being I have been just running the script and hitting Y when prompted. Is there a way to run the command without that user input?
No Events found!



dynamox
9 Legend
•
20.4K Posts
0
February 25th, 2008 08:00
bjohnson-csi360
2 Posts
0
February 25th, 2008 08:00
Well, easy points for ya.
AranH1
2.2K Posts
0
February 25th, 2008 12:00
RRR
4 Operator
•
5.7K Posts
0
February 25th, 2008 12:00
y|navicli -h ip# bla bla bla.....
Works like a charm. Never knew there was a "-o" option as well.
It sure sounds like "-nop' in Symcli.
dynamox
9 Legend
•
20.4K Posts
0
February 25th, 2008 12:00
y|navicli -h ip# bla bla bla.....
i don't think this will work on Windows ..has to be some kind of shell ?
Works like a charm. Never knew there was a "-o"
option as well.
It sure sounds like "-nop' in Symcli.
it's exactly what it is
Allen Ward
4 Operator
•
2.1K Posts
0
February 25th, 2008 13:00
y|navicli -h ip# bla bla bla.....
i don't think this will work on Windows ..has to be
some kind of shell ?
Yes, in Windows you can't do exactly the same thing. You can cheat it by creating a text file "yes.txt" with "y" as the contents and then running the command like this:
navicli -h ip# bla bla bla < yes.txt
But it's much easier to use the "-o"
RRR
4 Operator
•
5.7K Posts
0
February 26th, 2008 10:00
"echo y|navicli bla bla bla...."
If anyone is interested I will look it up, but the "-o" sure is easier.