if you parse like this
grep "акамулятор" "$HOME/$APPS" | awk '{print strftime("%x-%R:%S:%N"), $0}' >> $1
no date, avk and grep package installed
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
opkg list-installed grep
opkg list-installed gawk
root@OpenWrt:~# ubus call system board
{
"kernel": "5.15.150",
"hostname": "OpenWrt",
"system": "Qualcomm Atheros QCA956X ver 1 rev 0",
"model": "TP-Link Archer C7 v5",
"board_name": "tplink,archer-c7-v5",
"rootfs_type": "ext2",
"release": {
"distribution": "OpenWrt",
"version": "23.05.3",
"revision": "r23809-234f1a2efa",
"target": "ath79/generic",
"description": "OpenWrt 23.05.3 r23809-234f1a2efa"
}
}
root@OpenWrt:~# opkg list-installed grep
grep - 3.8-2
root@OpenWrt:~# opkg list-installed gawk
gawk - 5.2.1-2
root@OpenWrt:~#
Not sure but seems you are looking for date -Is
?
root@OpenWrt:~# date -Is
2024-10-16T20:17:50+03:00
You can use date command to do conversions of varied date formats.
Or replace awk to gawk
%N
doesn’t appear to be valid for strftime()
. Remove it?
maybe even after installation coreutils-date. I need nanoseconds more than anything else
i need nanoseconds
This doesn't work?
BTW, why do you need [more] precision time from a router?
They generally don't contain real time clocks.
Going to be tough there with nanosec's for any platform... the internal clocks are just not that capable...
time is relative to the fleet of devices around the AP...
Even with NTPSec (and a source) or NTP, or Chrony - not that much resolution...
works only without nanoseconds.
Why? in order for each cycle to contain real time.
How do they not contain it? on your native firmware, if there is no real time, then you do not create a dns server.
You sure?
root@OpenWrt:~# date +%H:%M:%S.%N
14:04:45.495686092
After removing:
root@OpenWrt:~# date +%H:%M:%S.%N
14:07:37.
I don't understand this statement.
grep "акамулятор" "$HOME/$APPS" | awk '{print strftime("%x-%R:%S:%N"), $0}' >> $1
and you try it so
Sorry, but I don't understand your post.
Sorry, I use a translator
You can use gawk print or coreutils date, but dont expect busybox to start supporting microtime-s everywhere. Good it supports posix 64bit seconds though.
excuse me but the second is very slow to measure cycles and most likely not only cycles
You dont call external program for high resolution timestamping.
which team is responsible for this