Good Morning,
I have a problem with the following code:
-------------Code-begin----------------
#! /bin/bash
export MeinKanal=$(mktemp -u --tmpdir meika.XXXXXXXX)
mkfifo "$MeinKanal"
trap "rm -f "$MeinKanal"" EXIT
KindId=$(($RANDOM * $$))
#----------------------Funktionen---------
function berechnen
{
x=2000
y=1000
xn=$((x/100*$Wert))
yn=$((y/100*$Wert))
}
#----------------Ende Funktionen-------------------
exec 8<> "$MeinKanal"
export -f berechnen
#yad --plug="$KindId" --tabnum=3 --scale --text="Werte in %" &
yad --plug="$KindId" --tabnum=1 --scale --text="Werte in %" --print-partial --value=50 --min-value=0 --max-value=100 | \
while read -r Wert; do
berechnen $Wert
echo "$xn ""$yn" > "$MeinKanal"
done &
yad --plug="$KindId" --tabnum=2 --form --cycle-read \
--field="Berechnete Werte":RO <&8 &
#--field="Schieber 2":scl 20 & \
yad --paned --key="$KindId" --button="gtk-ok:0" --button="gtk-quit:1" --borders=10 --geometry=300x300 \
--title="test"
exec 8>&-
--------------------------------Code-End---------------------------
The results of a calculation are displayed in the RO field, but if I add another field to the --form it no longer works. In this case the default value of 20 is in the RO field
Does anyone have any idea how to solve this.
Thanks very much
greeting
wolfgang