03-06-2016 01:43 AM - edited 03-03-2019 08:09 AM
Hello,
How to overwrite a file in flash ??
I am running a script for every 10 minutes by running below command
show dial-peer voice summary | append flash:file.txt
Everytime after running the script the output is getting saved in the same file without overwriting earlier output.
I want to overwrite old file with the new one for every 10 minutes when the script runs.
Regards,
Faizan.
03-06-2016 02:16 AM
Instead of using "append" try "redirect".
03-06-2016 02:43 AM
Redirect is working..
But, i want to use this command while running an eem script..Below is the config
action 1.0 cli command "show dial-peer voice summary | redirect flash:file.txt"
After running this command since it is asking to confirm for overwriting existing file...I used the below script to simply enter..
action 1.5 cli command " "
But its not working, eem status is showing as aborted.
Please suggest.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide