parse systeminfo for uptime
Posted to
tcl
by kostix at Sat Nov 07 00:14:16 GMT 2009
view raw
%
foreach
line [
split
[
exec
systeminfo] \n] {
if
{[
string
match "Время работы*"
$line
]} {
puts
$line
;
break
} }
Время работы системы: 3 дн., 12 час., 45 мин, 23 сек.
Recent Posts
tcl by Stu
6 days ago
tcl by rhobart
19 days ago
tcl by stevel
23 days ago
tcl by dandyn
31 days ago
tcl by dandyn
31 days ago
tcl by dandyn
31 days ago
tcl by dandyn
34 days ago
tcl by dandyn
34 days ago
tcl by emiliano
44 days ago
tcl by dandyn
44 days ago
Submit
New paste
Documentation
From Jabber