Make a program can collect linux command output regularly and send to a tftp server
I intend to make a program that will collect commands output that I need and send it to a tftp server in every seconds.
I will make another python script at tftf server to collect and parse the information that I need to save. But I'm not really how to implement it yet because. No python, tcl/expect solution can be applied here because this is a small device that use busybox. Cpu/memory less consuming is a requirement to maintain device performance.
Does bash shell can help to get output of a command like top? Or is there any other way to solve this requirement