I want to get a script that gets your uptime and converts it into minutes, then it will use netcat to send it to the uptimes project (uptimes.wonko.com). I understand the protocol and how it works.
My problem is that I dont even know where to start with manipulating strings in sh. I guess it would have to do the following...
Get the uptime in days multiply it by 24
get the uptime in hours add the above's result and multiply it by 60
get the uptime in minutes add the above's result and send it to the uptimes server
(one day i hope programming is this easy).
Thanks in advance.


