|
|
01-03-2013
, 11:51 PM
|
|
Moderator |
Posts: 5,850 |
Thanked: 5,295 times |
Joined on Nov 2011
|
#421
|
|
|
01-03-2013
, 11:57 PM
|
|
Posts: 75 |
Thanked: 7 times |
Joined on Jan 2012
|
#422
|
all of the above is one command so you can check the outcome which should be the output of the dc command...
~$ usage=$(gconftool -g /cellui/settings/datacounter/general/gprs_home_notification_period_UI) ; tx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_tx_bytes) ; rx=$(gconfto ol -g /cellui/settings/datacounter/transfer/gprs_home_rx_bytes) ; total=$(($tx+$rx)) ; `dc $total $usage / p` dc: Could not open file 242418745 dc: Could not open file 1000000000 dc: Will not attempt to process directory / dc: Could not open file p ~ $
|
|
01-04-2013
, 12:00 AM
|
|
Moderator |
Posts: 5,850 |
Thanked: 5,295 times |
Joined on Nov 2011
|
#423
|
~# dpkg -l | grep dc ii libstdc++6 4.4.1-0maemo14+0m6 The GNU Standard C++ Library v3
|
|
01-04-2013
, 12:11 AM
|
|
Posts: 75 |
Thanked: 7 times |
Joined on Jan 2012
|
#424
|
~# dpkg -l | grep dc ii advancedcallrecorder 1.0.0 Advanced Call Recorder for Meego ii dc 1.06.95-2+maemo9+0m6 The GNU dcarbitrary precision reverse-polish calculator ii libstdc++6 4.4.1-0maemo14+0m6 The GNU Standard C++ Library v3 ~ #
|
|
01-04-2013
, 12:15 AM
|
|
Moderator |
Posts: 5,850 |
Thanked: 5,295 times |
Joined on Nov 2011
|
#425
|
|
|
01-04-2013
, 12:29 AM
|
|
Posts: 75 |
Thanked: 7 times |
Joined on Jan 2012
|
#426
|
~ # dpkg -l | grep dc ii advancedcallrecorder 1.0.0 Advanced Call Recorder for Meego rc dc 1.06.95-2+maemo9+0m6 The GNU dcarbitrary precision reverse-polish calculator ii libstdc++6 4.4.1-0maemo14+0m6 The GNU Standard C++ Library v3 ~ #
|
|
01-04-2013
, 03:06 AM
|
|
|
Posts: 1,412 |
Thanked: 1,906 times |
Joined on Nov 2011
@ Russia
|
#427
|
#!/bin/sh
# Warn in red if data left <20%
# Data usage in cyan if data left not <20%
tx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_tx_bytes)
rx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_rx_bytes)
total=$(($tx+$rx))
usage=$(gconftool -g /cellui/settings/datacounter/general/gprs_home_notification_period_UI)
totalMB=$((($tx+$rx)/1000000))
amount=$(($total*100/$usage))
if [ $amount -ge 80 ]
then
echo {{red}}"Data left < 20%"
else
echo {{cyan}}"Data used = $totalMB MB"
fi
| The Following User Says Thank You to coderus For This Useful Post: | ||
|
|
01-04-2013
, 03:15 AM
|
|
|
Posts: 1,412 |
Thanked: 1,906 times |
Joined on Nov 2011
@ Russia
|
#428
|
#!/bin/sh
#profilematic idle enter script
text=$(gconftool -g /apps/billboard/text)
gconftool -s -t string /apps/billboard/text "{{white}}Billboard"
gconftool -s -t string /apps/billboard/text "${text}"
|
|
01-04-2013
, 11:05 AM
|
|
Posts: 243 |
Thanked: 278 times |
Joined on Jan 2010
|
#429
|
Script for force updating Billboard data when locking screen. Should be used with profilematic idle rule as activate script.
Code:#!/bin/sh #profilematic idle enter script text=$(gconftool -g /apps/billboard/text) gconftool -s -t string /apps/billboard/text "{{white}}Billboard" gconftool -s -t string /apps/billboard/text "${text}"
|
|
01-04-2013
, 11:17 AM
|
|
Posts: 243 |
Thanked: 278 times |
Joined on Jan 2010
|
#430
|
![]() |
| Thread Tools | Search this Thread |
|