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 colin
1 days ago
tcl by colin
2 days ago
tcl by apn
2 days ago
tcl by evilotto
4 days ago
tcl by evilotto
4 days ago
tcl by colin
6 days ago
tcl by colin
7 days ago
tcl by colin
7 days ago
tcl by colin
7 days ago
tcl by egavilan
11 days ago
Submit
New paste
Documentation
From Jabber