Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Development Notes - Sharing
« previous
next »
Print
Pages: [
1
]
Author
Topic: Development Notes - Sharing (Read 4348 times)
MasterXBKC
Jr. Member
Posts: 66
Karma: 6
Infragard Member
Development Notes - Sharing
«
on:
July 03, 2017, 07:08:04 pm »
This is a spot i will share usefull random tidbits of code found or made from my development on opnsense.
How to get human friendly uptime from opnsense
Code:
[Select]
uptime | awk -F'( |,|:)+' '{print $4,$5",",$6,"hours,",$7,"minutes."}'
4 days, 12 hours, 09 minutes.
Logged
Member of FBIs Infragard Program
Certified Information Systems Security Officer
Certified Vulnerability Assessor
PFMonitor Remote Management, Backup, & Live Monitoring for PFSense and OPNSense
OPNSense Units: R720XD XL, R720XD XL, R720XD, R720XD, R710, DL360G7, QNAP
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Development Notes - Sharing