I'm using MT7621, and i have problem with my command.
whenever i try to save a connection status about my interfaces, i need to type following command.
root@router:/# iwpriv apcli0 show connStatus
[69607.953456] =============================================================
[69607.960268] ApCli0 Connected AP : Disconnect
[69607.964590] ApCli0 CliLinkMap ra:0 1 2 3
Ignore repeater MAC address
=============================================================
root@router:/#
in order to save that as text file, i need to use >
.
Here is what i did
root@router:/# iwpriv apcli0 show connStatus > test.txt
[69710.469220] =============================================================
[69710.476104] ApCli0 Connected AP : Disconnect
[69710.480372] ApCli0 CliLinkMap ra:0 1 2 3
Ignore repeater MAC address
=============================================================
root@router:/# cat test.txt
root@router:/#
seems it's not working, so i tried with |
and grep
root@router:/# iwpriv apcli0 show connStatus | grep "ApCli0"
[69865.245236] =============================================================
[69865.252084] ApCli0 Connected AP : Disconnect
[69865.256352] ApCli0 CliLinkMap ra:0 1 2 3
Ignore repeater MAC address
=============================================================
root@router:/#
I think, only the string with "ApCli0" should be printed like
[69865.252084] ApCli0 Connected AP : Disconnect
[69865.256352] ApCli0 CliLinkMap ra:0 1 2 3
but it does not.
I tried using tee
, but this does not works too.
Of course commands like ifconfig
works well with >
.
Also iwpriv
without show
option works well with >
.
Only iwpriv [interface] show [parameter]
does not work with >
.
Any ideas for this?
Plus, not like other commands, iwpriv [interface] show [parameter]
shows a time stamp. i'm not sure that is related.