Question
How to respond "y" in a script for the factoryreset command?
Hi,
I'm trying to run a script:
execute factoryreset
y
to do a factory reset from a Fortimanager script, but not sure how to pipe "y" to the question when it get prompt:
execute factoryreset
echo y
FWF60E # execute factoryreset
This operation will reset the system to factory default!
Do you want to continue? (y/n) <<<<<< what to add in script to execute
FWF60E # execute echo y
command parse error before 'echo'
Command fail. Return code -61
FWF60E #
Any info would be helpful oi
