This commit is contained in:
garbeam 2005-12-12 16:19:14 +02:00
commit a46776cddc

View File

@ -22,9 +22,13 @@ fn sigint {
exit
}
text=fnord
while(wmiir write /bar/$label/data $"text >[2]/dev/null) {
# if you need formatted date, use /bin/date instead
text=(`{date} `{uptime | sed 's/.*://; s/,//g'})
sleep 10
fn statustext {
# if you need a formatted date, use awk
echo (`{date} `{uptime | sed 's/.*://; s/,//g'})
}
text=`{statustext}
while(wmir write /bar/$label/data $"text >[2]/dev/null) {
text=`{statustext}
sleep 2
}