ā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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: