screen hardstatus alwayslastline with sysctl command
- Reply: ft : "Re: screen hardstatus alwayslastline with sysctl command - solved"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Nov 2024 14:03:04 UTC
Hello, I work with screen. it is possible to integrate the command $(/sbin/sysctl dev.cpu.0.temperature) or (better) $(/sbin/sysctl dev.cpu.0.temperature | cut -d ' ' -f 2 ) into the screen programm into hardstatus alwayslastline? Now my line is: hardstatus alwayslastline "%{= RY}%H %{BW}%l %{Gb}%Y-%m-%d %c%=" it works fine. (1) "%{= kw}CPU Temp: %{G}$(/bin/sh -c '/sbin/sysctl dev.cpu.0.temperature')" doesn't work. it prints the command string $(...) (2) "%{= RY}%H %{BW}%l %{Gb}%Y-%m-%d %c%{BW}$(/sbin/sysctl dev.cpu.0.temperature)%=" doesn't work. (3) "%{= RY}%H %{BW}%l %{Gb}%Y-%m-%d %c%{BW}$(cat /home/ft/skripte/cronjobs/tempft_screen.log)%=" doesn't work. the following command from (3) works: (filecontent with current temperature) cat /home/ft/skripte/cronjobs/tempft_screen.log 62,1 Have someone an idea to intgrate the sysctl command into the hardstatus? Franz