NopeTry using the raw command (in an ssh terminal session) instead of the script.
Code:/bin/sed -i '/kernel: dcd/,/kernel: x1 /d' /tmp/syslog.log
NopeTry using the raw command (in an ssh terminal session) instead of the script.
Code:/bin/sed -i '/kernel: dcd/,/kernel: x1 /d' /tmp/syslog.log
Then I'd double-check that the file /tmp/syslog.log is actually the one being used for the syslog (by opening it in an editor). I'd also check that it contains the block of text in the correct format that you're trying to delete, e.g. it starts with "kernel: dcd" and ends with "kernel: x1 ".Nope
Thanks everyone for trying to help with this. It's really not a big deal. Just an annoyance.Then I'd double-check that the file /tmp/syslog.log is actually the one being used for the syslog (by opening it in an editor). I'd also check that it contains the block of text in the correct format that you're trying to delete, e.g. it starts with "kernel: dcd" and ends with "kernel: x1 ".
Nov 9 08:45:13 kernel: pgd = ffffffc0119f4000
Nov 9 08:45:13 kernel: [00000000] *pgd=00000000101d1003, *pud=00000000101d1003, *pmd=000000000348e003, *pte=0000000000000000
Nov 9 08:45:13 kernel: CPU: 1 PID: 26044 Comm: dcd Tainted: P O 4.1.27 #2
Nov 9 08:45:13 kernel: Hardware name: Broadcom-v8A (DT)
Nov 9 08:45:13 kernel: task: ffffffc014e8c140 ti: ffffffc00a65c000 task.ti: ffffffc00a65c000
Nov 9 08:45:13 kernel: PC is at 0xf75ddf44
Nov 9 08:45:13 kernel: LR is at 0x1dc74
Nov 9 08:45:13 kernel: pc : [<00000000f75ddf44>] lr : [<000000000001dc74>] pstate: 600e0010
Nov 9 08:45:13 kernel: sp : 00000000ffbe3b98
Nov 9 08:45:13 kernel: x12: 000000000009ff08
Nov 9 08:45:13 kernel: x11: 00000000f68ff024 x10: 00000000000a02ac
Nov 9 08:45:13 kernel: x9 : 00000000f68ff868 x8 : 00000000000a0764
Nov 9 08:45:13 kernel: x7 : 00000000f68ff8a0 x6 : 00000000000a075e
Nov 9 08:45:13 kernel: x5 : 0000000000000000 x4 : 00000000f68ff84c
Nov 9 08:45:13 kernel: x3 : 0000000000000000 x2 : 00000000ffbe3b74
Nov 9 08:45:13 kernel: x1 : 000000000007c66c x0 : 0000000000000000
/bin/sed -i '/kernel: pgd/,/kernel: x1 /d' /tmp/syslog.log
That's strange. In the original posts which this tread is based on (e.g. here) there was another line immediately before those you have that looked like this:EDIT: I just tried this and it worked... (changed dcd to pgd)
Code:/bin/sed -i '/kernel: pgd/,/kernel: x1 /d' /tmp/syslog.log
Apr 25 12:51:53 kernel: dcd[8189]: unhandled level 3 translation fault (11) at 0x00000000, esr 0x92000007
EDIT: I just tried this and it worked... (changed dcd to pgd)
Code:/bin/sed -i '/kernel: pgd/,/kernel: x1 /d' /tmp/syslog.log
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!