Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 10, 2007, 3:48 pm
rate this thread
could anyone please help me build a uptime script for openbsd?
i tried phpsysinfo, it doesn't work (only uptime works, and that's
around 15k days :p)
i tried these:
$uptime_output = system("uptime", $uptime_output);
$uptime = shell_exec("cut -d. f1 /proc/uptime");
$days = floor($uptime/60/60%24);
$hours = $uptime/60/60%24;
$mins = $uptime%60;
$secs = $uptime%60;
echo "current uptime is $days days, $hours hours, $mins minutes and
but none of these works.
i 'd appreciate your help