|
|
Zeile 1: |
Zeile 1: |
− | [http://noxuhax.ifrance.com/content/view/rita-moric.htm rita moric] [http://akmokanzen.ifrance.com/images/small/ultimo-cd.htm ultimo cd 883] [http://yeeden.ifrance.com/img/styles/mu-immortal/ mu immortal] [http://toofarfrommaybe.ifrance.com/view/new/disalberare/ disalberare] [http://lordsander.ifrance.com/topic/foto-di.htm foto di donne porno] [http://jdawsona.ifrance.com/data/vendita-vettura/ vendita vettura] [http://speedofsoun.ifrance.com/text/directory/brainwave.htm brainwave] [http://voltia.ifrance.com/content/view/bmw-z.htm bmw z3 3 2] [http://jdawsona.ifrance.com/data/laminati-abet/ laminati abet print] [http://toofarfrommaybe.ifrance.com/view/new/culi-rotti/ culi rotti gratis] [http://deviantrus.ifrance.com/topic/sms-mondiali/ sms mondiali] [http://igaros.ifrance.com/lib/xlukex/ xlukex] [http://speedofsoun.ifrance.com/text/directory/dirty-dancing.htm dirty dancing film] [http://singaporepets.ifrance.com/library/html/come-trovare.htm come trovare cazzi a roma] [http://lordsander.ifrance.com/topic/dragoste-di.htm dragoste di tei] [http://highbulp.ifrance.com/images/small/max-scopate/ max scopate] [http://lordsander.ifrance.com/topic/hp-compaq.htm hp compaq dx6100] [http://lovereceier.ifrance.com/lib/usted.htm usted] [http://broadwaylili.ifrance.com/content/view/mar-chiquita.htm mar chiquita] [http://highbulp.ifrance.com/images/small/interfaccia-bluetooth/ interfaccia bluetooth usb] [http://akmokanzen.ifrance.com/images/small/solletico.htm solletico] [http://oiyaoi.ifrance.com/images/small/love-hona/ love hona] [http://highbulp.ifrance.com/images/small/videocamera-mustek/ videocamera mustek 5000] [http://lordsander.ifrance.com/topic/finale-a.htm finale a valvole] [http://toofarfrommaybe.ifrance.com/view/new/hp-laserjet/ hp laserjet 3020 toner] [http://igaros.ifrance.com/lib/corpo-foresta/ corpo foresta] [http://highbulp.ifrance.com/images/small/lcd-/ lcd 10 pollici] [http://tat-ooin.ifrance.com/resources/articles/volantini.htm volantini] [http://deviantrus.ifrance.com/topic/circuiti-moto/ circuiti moto gp] [http://noxuhax.ifrance.com/content/view/la-guerra.htm la guerra dei nibelunghi] [http://singaporepets.ifrance.com/library/html/mi-manca.htm mi manca] [http://igaros.ifrance.com/lib/i-pod/ i pod mp3 apple] [http://demurediablo.ifrance.com/library/html/dvd-combo/ dvd combo vhs divx] [http://tat-ooin.ifrance.com/resources/articles/biglietto-visita.htm biglietto visita gratis] [http://singaporepets.ifrance.com/library/html/ibm-thinkpad.htm ibm thinkpad computers] [http://lovereceier.ifrance.com/lib/maddnes.htm maddnes] [http://igaros.ifrance.com/lib/gallerie-porno/ gallerie porno gratuite] [http://kalian42.ifrance.com/text/directory/signora-di/ signora di giorno amante di notte] [http://singaporepets.ifrance.com/library/html/nuovi-cellulari.htm nuovi cellulari nero] [http://noxuhax.ifrance.com/content/view/acryllium.htm acryllium] [http://broadwaylili.ifrance.com/content/view/nokia-.htm nokia 7610 memoria] [http://highbulp.ifrance.com/images/small/vacanza-in/ vacanza in turchia] [http://toofarfrommaybe.ifrance.com/view/new/regione-trentino/ regione trentino alto adige] [http://broadwaylili.ifrance.com/content/view/la-strada.htm la strada dei peccatori] [http://igaros.ifrance.com/lib/donna-mathews/ donna mathews] [http://noxuhax.ifrance.com/content/view/la-scarpetta.htm la scarpetta e la rosa] [http://noxuhax.ifrance.com/content/view/segnalazione-.htm segnalazione - cartelli e insegne] [http://tizolaa.ifrance.com/web/disco-freno/ disco freno accessori auto e moto] [http://jdawsona.ifrance.com/data/gps-per/ gps per palmari qtek] [http://jdawsona.ifrance.com/data/programma-dvd/ programma dvd] [http://yeeden.ifrance.com/img/styles/pelle-ducati/ pelle ducati] [http://yeeden.ifrance.com/img/styles/hard-disk/ hard disk portatile lacie 40] [http://lovereceier.ifrance.com/lib/pigro-midi.htm pigro midi pino daniele] [http://broadwaylili.ifrance.com/content/view/i-palazzi.htm i palazzi di venezia la storia della] [http://highbulp.ifrance.com/images/small/granata-seconda/ granata seconda pelle] [http://kalian42.ifrance.com/text/directory/notebook-p/ notebook p4 3 2] [http://oiyaoi.ifrance.com/images/small/albergo-cortina/ albergo cortina] [http://highbulp.ifrance.com/images/small/motorola-accessori/ motorola accessori] [http://oiyaoi.ifrance.com/images/small/great-teacher/ great teacher onizuka] [http://oiyaoi.ifrance.com/images/small/tesi-automazione/ tesi automazione] [http://speedofsoun.ifrance.com/text/directory/th.htm th 42] [http://akmokanzen.ifrance.com/images/small/honda-accord.htm honda accord 7 serie] [http://singaporepets.ifrance.com/library/html/bosley.htm bosley] [http://igaros.ifrance.com/lib/piatti-termici/ piatti termici] [http://tat-ooin.ifrance.com/resources/articles/etichette-cd.htm etichette cd dvd] [http://singaporepets.ifrance.com/library/html/regole-yo.htm regole yo gi ho] [http://broadwaylili.ifrance.com/content/view/living-in.htm living in a fantasy] [http://noxuhax.ifrance.com/content/view/foto-caccia.htm foto caccia] [http://oiyaoi.ifrance.com/images/small/meyal/ meyal] [http://toofarfrommaybe.ifrance.com/view/new/arigliano/ arigliano] [http://girlwho-is.ifrance.com/img/styles/koganei.htm koganei] [http://yeeden.ifrance.com/img/styles/usb-memory/ usb memory stick] [http://demurediablo.ifrance.com/library/html/suonerie-da/ suonerie da scaricare] [http://yeeden.ifrance.com/img/styles/inno-nationale/ inno nationale] [http://tat-ooin.ifrance.com/resources/articles/chitarra-blues.htm chitarra blues] [http://igaros.ifrance.com/lib/garut/ garut] [http://kalian42.ifrance.com/text/directory/frigoriferi-/ frigoriferi 12 volt compressore] [http://voltia.ifrance.com/content/view/fotocamera-digitale.htm fotocamera digitale canon 350 d] [http://igaros.ifrance.com/lib/taglia-tubi/ taglia tubi red] [http://toofarfrommaybe.ifrance.com/view/new/gratta-e/ gratta e vinci video] [http://singaporepets.ifrance.com/library/html/apple.htm apple 512] [http://demurediablo.ifrance.com/library/html/testo-di/ testo di if aint got you] [http://tizolaa.ifrance.com/web/foto-di/ foto di eva] [http://oiyaoi.ifrance.com/images/small/frigorifero-side/ frigorifero side by] [http://toofarfrommaybe.ifrance.com/view/new/french-kisses/ french kisses] [http://girlwho-is.ifrance.com/img/styles/hifi-lg.htm hi-fi lg] [http://igaros.ifrance.com/lib/www-mitchel/ www mitchel vieth] [http://toofarfrommaybe.ifrance.com/view/new/semisonic/ semisonic] [http://tizolaa.ifrance.com/web/rs-mmc/ rs mmc 1 8] [http://speedofsoun.ifrance.com/text/directory/vanni-rossi.htm vanni rossi] [http://deviantrus.ifrance.com/topic/bcs/ bcs 311] [http://tat-ooin.ifrance.com/resources/articles/albergo-lido.htm albergo lido di camaiore] [http://deviantrus.ifrance.com/topic/z-cellulari/ z200 cellulari sony ericsson] [http://voltia.ifrance.com/content/view/calcio-parma.htm calcio parma] [http://lovereceier.ifrance.com/lib/scheda-gprs.htm scheda gprs compact flash] [http://tat-ooin.ifrance.com/resources/articles/scribner-charles.htm scribner, charles] [http://akmokanzen.ifrance.com/images/small/ford-cayman.htm ford cayman blue] [http://yeeden.ifrance.com/img/styles/c-photo/ c86 photo] [http://toofarfrommaybe.ifrance.com/view/new/loghi-cellulare/ loghi cellulare sony] [http://singaporepets.ifrance.com/library/html/globalsat-pda.htm globalsat pda holder] [http://deviantrus.ifrance.com/topic/tunnig/ tunnig] [http://tat-ooin.ifrance.com/resources/articles/tadap.htm tadap] [http://toofarfrommaybe.ifrance.com/view/new/epson-emp/ epson emp 730] [http://kalian42.ifrance.com/text/directory/domina-coral/ domina coral bay oasis] [http://noxuhax.ifrance.com/content/view/billy-ydol.htm billy ydol] [http://highbulp.ifrance.com/images/small/foto-di/ foto di cazzi piccoli] [http://girlwho-is.ifrance.com/img/styles/chat-ragazze.htm chat ragazze porche] [http://speedofsoun.ifrance.com/text/directory/perla-nera.htm perla nera com] [http://lordsander.ifrance.com/topic/annunci-di.htm annunci di donne troie in cerca di sesso] [http://noxuhax.ifrance.com/content/view/abit-nfm.htm abit nf7-m] [http://girlwho-is.ifrance.com/img/styles/stamping-ground.htm stamping ground] [http://lovereceier.ifrance.com/lib/radio-anni.htm radio anni 30] [http://demurediablo.ifrance.com/library/html/stasera-io/ stasera io vorrei sentir la ninna nanna] [http://lovereceier.ifrance.com/lib/video-amatoriale.htm video amatoriale paris hilton] [http://highbulp.ifrance.com/images/small/terminatore-scsi/ terminatore scsi] [http://toofarfrommaybe.ifrance.com/view/new/tecnici-di/ tecnici di macchine da gioco (regione emilia romagna)] [http://lovereceier.ifrance.com/lib/mesecina.htm mesecina] [http://demurediablo.ifrance.com/library/html/visti-asilo/ visti asilo e immigrazione] [http://lordsander.ifrance.com/topic/gomma-modding.htm gomma modding] [http://jdawsona.ifrance.com/data/frankee-nuda/ frankee nuda] [http://igaros.ifrance.com/lib/bmw-x/ bmw x5 emilia romagna] [http://deviantrus.ifrance.com/topic/www-killer/ www killer pollo] [http://highbulp.ifrance.com/images/small/tomtom-europe/ tomtom europe] [http://voltia.ifrance.com/content/view/backstage-manuela.htm backstage manuela arcuri gratis] [http://speedofsoun.ifrance.com/text/directory/nesta.htm nesta] [http://tat-ooin.ifrance.com/resources/articles/usb.htm usb 250] [http://lordsander.ifrance.com/topic/whittier-john.htm whittier, john greenleaf] [http://tat-ooin.ifrance.com/resources/articles/eurothink-cdtheque.htm eurothink cdtheque] [http://broadwaylili.ifrance.com/content/view/coppie-cercano.htm coppie cercano sigoli] [http://girlwho-is.ifrance.com/img/styles/programma-musica.htm programma musica] [http://jdawsona.ifrance.com/data/tv-/ tv 12 pollici] [http://toofarfrommaybe.ifrance.com/view/new/beat-the/ beat the meter] [http://demurediablo.ifrance.com/library/html/dream-dance/ dream dance vol 30] [http://tizolaa.ifrance.com/web/i-simboli/ i simboli cristiani primitivi] [http://singaporepets.ifrance.com/library/html/forni-micronde.htm forni micronde] [http://jdawsona.ifrance.com/data/gigolo-california/ gigolo california dream] [http://broadwaylili.ifrance.com/content/view/fuji-s.htm fuji s5500] [http://speedofsoun.ifrance.com/text/directory/rubias.htm rubias19] [http://girlwho-is.ifrance.com/img/styles/xg-flash.htm xg flash] [http://kalian42.ifrance.com/text/directory/unito/ unito] [http://yeeden.ifrance.com/img/styles/scuola-canto/ scuola canto] [http://singaporepets.ifrance.com/library/html/wifi-pci.htm wi-fi pci card] [http://igaros.ifrance.com/lib/bikkemberg-uomo/ bikkemberg uomo abbigliamento] [http://tat-ooin.ifrance.com/resources/articles/il-bambino.htm il bambino dinverno] [http://demurediablo.ifrance.com/library/html/mari-gruppo/ mari (gruppo etnico della rus...] [http://noxuhax.ifrance.com/content/view/celo.htm celo-] [http://yeeden.ifrance.com/img/styles/do-doi/ do doi pachi] [http://voltia.ifrance.com/content/view/biografia-su.htm biografia su meneguzzi] [http://highbulp.ifrance.com/images/small/soggiorno-albergo/ soggiorno albergo lisbona] [http://deviantrus.ifrance.com/topic/prada-uomo/ prada uomo cinture] [http://oiyaoi.ifrance.com/images/small/finanziamento-vimercate/ finanziamento vimercate] [http://lordsander.ifrance.com/topic/evangelici.htm evangelici] [http://highbulp.ifrance.com/images/small/renou-louis/ renou, louis] [http://igaros.ifrance.com/lib/y-nos/ y nos dieron las diez] [http://demurediablo.ifrance.com/library/html/supercafone/ supercafone] [http://lovereceier.ifrance.com/lib/gerarchi-si.htm gerarchi si muore] [http://kalian42.ifrance.com/text/directory/sandali-schiava/ sandali schiava] [http://jdawsona.ifrance.com/data/faces-of/ faces of death] [http://noxuhax.ifrance.com/content/view/naughty-girl.htm naughty girl di beyonce] [http://akmokanzen.ifrance.com/images/small/vercana.htm vercana] [http://lovereceier.ifrance.com/lib/barbera-asti.htm barbera asti] [http://singaporepets.ifrance.com/library/html/hotel-best.htm hotel best western aida opera parigi] [http://tat-ooin.ifrance.com/resources/articles/figa-nere.htm figa nere] [http://lovereceier.ifrance.com/lib/karel-y.htm karel y voltio] [http://igaros.ifrance.com/lib/tatanka-dj/ tatanka dj] [http://girlwho-is.ifrance.com/img/styles/samsung-fotocamera.htm samsung fotocamera digimax a6] [http://lordsander.ifrance.com/topic/giugno.htm giugno] [http://lovereceier.ifrance.com/lib/game-boy.htm game boy mario kart] [http://kalian42.ifrance.com/text/directory/mariah-carey/ mariah carey video nuda] [http://broadwaylili.ifrance.com/content/view/musica-moderna.htm musica moderna] [http://toofarfrommaybe.ifrance.com/view/new/steve-wonder/ steve wonder] [http://girlwho-is.ifrance.com/img/styles/sound-blaster.htm sound blaster audigy2 zs notebook] [http://kalian42.ifrance.com/text/directory/confederazione-italiana/ confederazione italiana agricoltori] [http://singaporepets.ifrance.com/library/html/haciendo-miguel.htm haciendo miguel] [http://singaporepets.ifrance.com/library/html/rkelly.htm rkelly] [http://voltia.ifrance.com/content/view/gusi.htm gusi] [http://lovereceier.ifrance.com/lib/betoi.htm betoi] [http://voltia.ifrance.com/content/view/radeon-agp.htm radeon agp 8x] [http://deviantrus.ifrance.com/topic/rampilonga/ rampilonga] [http://girlwho-is.ifrance.com/img/styles/despretine-ozone.htm despretine ozone] [http://lordsander.ifrance.com/topic/la-torre.htm la torre di babele] [http://voltia.ifrance.com/content/view/rs-mmc.htm rs mmc dv 1] [http://singaporepets.ifrance.com/library/html/mille-pazzie.htm mille pazzie] [http://lovereceier.ifrance.com/lib/congelatore-rex.htm congelatore rex incasso] [http://broadwaylili.ifrance.com/content/view/hotel-varazze.htm hotel varazze] [http://highbulp.ifrance.com/images/small/showgirl-nude/ showgirl nude gratis] [http://broadwaylili.ifrance.com/content/view/parafrasi-cinque.htm parafrasi cinque maggio] [http://broadwaylili.ifrance.com/content/view/mappa.htm mappa] [http://demurediablo.ifrance.com/library/html/vasco-un/ vasco un senso] [http://tizolaa.ifrance.com/web/concerto-madonna/ concerto madonna] [http://broadwaylili.ifrance.com/content/view/lecco-tessile.htm lecco tessile] [http://lordsander.ifrance.com/topic/u-make.htm u make me wanna dei blue] [http://deviantrus.ifrance.com/topic/e-sulo/ e sulo niente] [http://tizolaa.ifrance.com/web/video-tv/ video tv flat] [http://jdawsona.ifrance.com/data/giochi-di/ giochi di magie] [http://igaros.ifrance.com/lib/lettori-mp/ lettori mp3 cowon iaudio 4 1 gb] [http://kalian42.ifrance.com/text/directory/maltrato-infantil/ maltrato infantil] [http://lovereceier.ifrance.com/lib/la-epoca.htm la epoca medieval] [http://voltia.ifrance.com/content/view/gaetano.htm gaetano] [http://tizolaa.ifrance.com/web/video-porno/ video porno gratis da scaricare formato] ==Beschreibung==
| + | ==Beschreibung== |
| '''Autor:''' Alberto Pachera | | '''Autor:''' Alberto Pachera |
| | | |
Zeile 78: |
Zeile 78: |
| VCore 2: 0.08 V (min = 1.53 V, max = 1.87 V) | | VCore 2: 0.08 V (min = 1.53 V, max = 1.87 V) |
| 3.3V: 3.37 V (min = 2.97 V, max = 3.63 V) | | 3.3V: 3.37 V (min = 2.97 V, max = 3.63 V) |
− | 5V: 4.99 V (min | + | 5V: 4.99 V (min = 4.50 V, max = 5.48 V) |
| + | 12V: 11.86 V (min = 10.79 V, max = 13.11 V) |
| + | -12V: -12.08 V (min = -15.06 V, max = -12.32 V) ALARM |
| + | -5V: -5.06 V (min = -5.48 V, max = -4.50 V) |
| + | fan1: 3792 RPM (min = 3000 RPM, div = 2) |
| + | fan2: 0 RPM (min = 3000 RPM, div = 2) ALARM |
| + | fan3: 0 RPM (min = 3000 RPM, div = 2) ALARM |
| + | temp1: 33°C (limit = 60°C) |
| + | temp2: 224.0°C (limit = 120°C, hysteresis = 100°C) (beep) |
| + | temp3: 224.4°C (limit = 120°C, hysteresis = 100°C) |
| + | vid: 1.700 V |
| + | alarms: |
| + | beep_enable: |
| + | Sound alarm enabled |
| + | </pre> |
| + | |
| + | Wir nehmen das mal ''auseinander''. |
| + | |
| + | <pre> |
| + | sensors | grep -i 'CPU TEMP' | cut -c 10-18 | tr -d ' ' |
| + | ^ ^ ^ |
| + | ^ ^ Löschen der Leerzeichen |
| + | ^ ^ |
| + | ^ Gibt 'characters' aus, zeichen 10 bis 18 |
| + | ^ |
| + | Suchphrase lautet 'CPU TEMP', '-i' steht für 'ignore case distinctions' GROß/klein Schreibung |
| + | </pre> |
| + | |
| + | Folgende Änderung: |
| + | |
| + | <pre> |
| + | - sensors | grep -i 'CPU TEMP' | cut -c 10-18 | tr -d ' ' |
| + | sensors | grep -i '^temp1:' | cut -c 10-18 | tr -d ' ' |
| + | </pre> |
| + | |
| + | Nun sollte sensors den gewünschten Wert ausgeben: |
| + | |
| + | <pre> |
| + | bash> sysinfo.sh cputemp |
| + | 33°C |
| + | </pre> |
| + | |
| + | Bei den anderen Daten ist ähnlich zu verfahren. |
| + | |
| + | <!-- ===Einstellungen=== --> |
| + | <!-- ===Parameter=== --> |
| + | |
| + | ==Sonstiges== |
| + | ===Probleme=== |
| + | * Bei älteren Versionen von "ps" (welches genutzt wird um "cpu free" anzuzeigen), kann es Probleme mit der Syntax geben '''sysinfoosd.c''': |
| + | <pre> |
| + | // Calculate cpu free |
| + | ExecShellCmd("CPU=0; for I in `ps -eo ""%C"" | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1 $2 }'`; done; echo $CPU", cTemp); |
| + | ^^^^^^^^^^^^^ |
| + | </pre> |
| + | * Sieht man am besten auf der Konsole, anstatt einzelne WERTE... wird (not found) ausgegeben: |
| + | <pre> |
| + | ~# ps e%C |
| + | spec value %C not found |
| + | </pre> |
| + | * Änderung: |
| + | <pre> |
| + | // Calculate cpu free |
| + | - ExecShellCmd("CPU=0; for I in `ps -eo ""%C"" | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1 $2 }'`; done; echo $CPU", cTemp); |
| + | ExecShellCmd("CPU=0; for I in `ps xu | awk '{ print $3 }' | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1 $2 }'`; done; echo $CPU", cTemp); |
| + | </pre> |
| + | |
| + | <!-- ===Tipps=== --> |
| + | <!-- ===Wunschliste=== --> |
| + | <!-- ===Snapshot=== --> |
| + | |
| + | ==Links== |
| + | # [http://secure.netroedge.com/~lm78 Sensors Projekt] |
| + | # [http://www.antbear.org/linux24_lm_sensors.html Sensors Howto] |
| + | # [http://kikko77.altervista.org Homepage des Plugins] tw. eng. Rest italienisch |
| + | |
| + | [[Kategorie:Plugins]] |
| + | {{i18n|sysinfo-plugin}} |
Version vom 20. August 2007, 17:05 Uhr
Beschreibung
Autor: Alberto Pachera
Plugin zeigt Systeminformationen:
- kernel version
- cpu type
- cpu frequenc
- cpu usage
- cpu free
- total memory
- memory free
- memory usage
- video disk space
Bilder
Softwareanforderungen
Installation
Source
pacman -S lm_sensors
prt-get depinst lm_sensors
apt-get install lm-sensors
emerge lm_sensors
yast -i sensors
Konfiguration
Link setzen.
ln -s $SOURCEDIR/VDR/PLUGINS/src/sysinfo/script/sysinfo.sh /usr/local/bin
Laut README muß die sysinfo.sh nur dann angepasst werden, wenn keine Daten im zweiten Block der OSD Ausgabe zu sehen sein sollten.
Cpu Temp: xxxxxx Fan1: xxxxxx
M/B Temp: xxxxxx Fan2: xxxxxx
bash> sysinfo.sh
Usage: sysinfo.sh {cputemp|cpufan|mbtemp|mbfan}
Bsp:
bash> sysinfo.sh cputemp
Bekommt man hier keine Ausgabe, ist sensors aufzurufen.
bash> sensors
as99127f-i2c-0-2d
Adapter: SMBus Via Pro adapter at e800
Algorithm: Non-I2C SMBus adapter
VCore 1: 1.72 V (min = 1.53 V, max = 1.87 V)
VCore 2: 0.08 V (min = 1.53 V, max = 1.87 V)
3.3V: 3.37 V (min = 2.97 V, max = 3.63 V)
5V: 4.99 V (min = 4.50 V, max = 5.48 V)
12V: 11.86 V (min = 10.79 V, max = 13.11 V)
-12V: -12.08 V (min = -15.06 V, max = -12.32 V) ALARM
-5V: -5.06 V (min = -5.48 V, max = -4.50 V)
fan1: 3792 RPM (min = 3000 RPM, div = 2)
fan2: 0 RPM (min = 3000 RPM, div = 2) ALARM
fan3: 0 RPM (min = 3000 RPM, div = 2) ALARM
temp1: 33°C (limit = 60°C)
temp2: 224.0°C (limit = 120°C, hysteresis = 100°C) (beep)
temp3: 224.4°C (limit = 120°C, hysteresis = 100°C)
vid: 1.700 V
alarms:
beep_enable:
Sound alarm enabled
Wir nehmen das mal auseinander.
sensors | grep -i 'CPU TEMP' | cut -c 10-18 | tr -d ' '
^ ^ ^
^ ^ Löschen der Leerzeichen
^ ^
^ Gibt 'characters' aus, zeichen 10 bis 18
^
Suchphrase lautet 'CPU TEMP', '-i' steht für 'ignore case distinctions' GROß/klein Schreibung
Folgende Änderung:
- sensors | grep -i 'CPU TEMP' | cut -c 10-18 | tr -d ' '
sensors | grep -i '^temp1:' | cut -c 10-18 | tr -d ' '
Nun sollte sensors den gewünschten Wert ausgeben:
bash> sysinfo.sh cputemp
33°C
Bei den anderen Daten ist ähnlich zu verfahren.
Sonstiges
Probleme
- Bei älteren Versionen von "ps" (welches genutzt wird um "cpu free" anzuzeigen), kann es Probleme mit der Syntax geben sysinfoosd.c:
// Calculate cpu free
ExecShellCmd("CPU=0; for I in `ps -eo ""%C"" | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1 $2 }'`; done; echo $CPU", cTemp);
^^^^^^^^^^^^^
- Sieht man am besten auf der Konsole, anstatt einzelne WERTE... wird (not found) ausgegeben:
~# ps e%C
spec value %C not found
// Calculate cpu free
- ExecShellCmd("CPU=0; for I in `ps -eo ""%C"" | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1 $2 }'`; done; echo $CPU", cTemp);
ExecShellCmd("CPU=0; for I in `ps xu | awk '{ print $3 }' | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1 $2 }'`; done; echo $CPU", cTemp);
Links
- Sensors Projekt
- Sensors Howto
- Homepage des Plugins tw. eng. Rest italienisch