12-25-2018, 07:01 AM
(12-22-2018, 03:44 PM)tuxd3v Wrote: RockPro64Hello tuxd3v,
i have a completely different question, maybe you can help me or an idea!
I create for me a welcome message for "SSH-Putty" connection. > EXAMPLE. On my RaspberryPi there is a command to read the CPU temperature "vcgencmd measure_temp" and I get a simple output>
Code:
pi@myhomeserver:~ $ vcgencmd measure_temp
temp=45.6'C
Code:
# Temperatur
TEMP=`vcgencmd measure_temp | cut -c "6-9"
............
............
\033[0;35m+ \033[0;37mTemperatur \033[0;35m= \033[1;32m$TEMP °C
............
............
Code:
pi@myhomeserver:~ $ sh welcome.sh
+++++++++++++++++: System Data :++++++++++++++++++++++++++++++++
+ Date and Time = Tue 25 Dec 13:22:22 CET 2018
+ Hostname = myhomeserver
+ Uptime = 0 Tage, 0:42 Stunden
+ Kernel = 4.14.79-v7+
+ CPU model = ARMv7 Processor rev 4 (v7l)
+ RAM (MB) = Belegt 313MB von 875MB
+ Speicher = Frei: 1.1T | Belegt: 2.6T | Gesamt: 3.6T
+ Temperatur = 41.3 °C
++++++++++++++++++: MY IP :+++++++++++++++++++++++++++++++++++++
| AA | 00.00.00.000 <-> 00-00-00-00.---------.com. |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Code:
root@RockHomeServer:~# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Stop monitoring using [ctrl]-[c]
Time big.LITTLE load %cpu %sys %usr %nice %io %irq CPU C.St.
13:30:45: 408/1416MHz 0.08 2% 0% 1% 0% 0% 0% 39.4°C 1/3
13:30:50: 408/ 408MHz 0.07 2% 0% 1% 0% 0% 0% 38.8°C 1/3
13:30:55: 408/ 408MHz 0.06 1% 0% 1% 0% 0% 0% 38.8°C 0/3
13:31:00: 408/ 600MHz 0.06 1% 0% 1% 0% 0% 0% 38.1°C 0/3^C
I can not integrate that into the welcome message.
I do not get far with Google Search.
I'm not a noob but that's new to me.
Can you please tell me what I can use in my case? You had to do with it too?
Thank you very much!
Merry Charismas !