Question
Inserting a PURGE command into a script
I have, what I hope to be, a simple question. I am writing a script to update our branch firewall Whitelist and would like to include a purge command. My thoughts are to have the script purge the current list and write the new one. My problem is the purge command requires a “y†to acknowledge the request and I can’t figure out how to write this into the script. Basically #config webfilter url #edit 2 #config entries #purge <---------give the y for yes(this is where i get stopped Then write the new list If I putty into the firewall, I can copy and paste my script. I merely added a line after the purge line with a " y" , and it works fine, but if i attempt to load the script as a text file I get an error. I have attempted to paste from the CLI in the web interface and can see the error occurs with the confirmation at the PURGE command
