05-30-2018 08:10 AM - edited 03-01-2019 06:37 PM
Hi
I am trying to capture output of certain command & Parse & than write the output into the file . I also want to repeate this process & appened the output .
Below works fine where I am capturing the output & appending to the file but i want to parse the output(show cell 0 all | inc SNR|RSSI|RSRP) & than wanted to write the file .
I looked into the action file but there is no append
Solved! Go to Solution.
06-05-2018 07:02 AM
They resemble the Tcl functionality. So remove "file" and look at the Tcl docs for the next command (e.g., "open", "puts", etc.).
06-07-2018 06:42 AM
05-31-2018 03:22 PM
The file action is a series of actions. The first being "file open". This takes an argument of the access type of the file. If you open the file with "a" then it is opened for appending:
file open fd flash:SIGNAL-STRENGTH.txt a
file puts fd "Hello,"
file close fd
file open fd flash:SIGNAL-STRENGTH.txt a
file puts fd "World!"
file close fd
At this point, the file's contents will be:
Hello,
World!
06-05-2018 06:59 AM
Thanks Joe, that worked.
where can I find mor information on file command.
Sincerely
Viral Patel
06-05-2018 07:02 AM
They resemble the Tcl functionality. So remove "file" and look at the Tcl docs for the next command (e.g., "open", "puts", etc.).
06-07-2018 06:42 AM
thank you joe.
Sincerely
Viral Patel
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