Shell básico e Programação em Shell Julio Neves
Bacula Heitor Medrado
Zabbix Adail Host
Produção Gráfica e Videografismo Cadunico
--
Victor Ananjevsky <anan...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "yad-common" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shell básico e Programação em Shell Julio Neves
Bacula Heitor Medrado
Zabbix Adail Host
Produção Gráfica e Videografismo Cadunico
--
You received this message because you are subscribed to the Google Groups "yad-common" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+unsubscribe@googlegroups.com.
Just compiled Yad 0.40.0 (has the build files included- configure file) (Yad 9.40.2 are missing these build files)
Compiled on: q4os Orion (Debian Jessie) 64bit AMD.
Q4OS Development Pack
sudo apt-get install intltool
sudo apt-get install gtk+2.0
with following terminal command:
./configure && make && sudo checkinstall
Created yad.40.0.deb as well.
#!/bin/bash
mkfifo /tmp/pipe
exec 4<>/tmp/pipe
trap "rm -f /tmp/pipe" EXIT
REFRESH_DIALOG(){
# clears list
echo -e "\f" >> /tmp/pipe
# loads data
printf "%s\n" "$(date '+%H:%M:%S')" "" "New" "" >> /tmp/pipe
}
export -f REFRESH_DIALOG
yad --list \
--width=200 \
--height=300 \
--item-separator=';' \
--columns=2 \
--column=Time \
--column=Chk:CHK \
--sep-column=1 \
--button="OK;gtk-ok":0 \
--button="Cancel;gtk-cancel":1 \
--button="Exit;exit":2 \
--button="Refresh;gtk-refresh":'bash -c "REFRESH_DIALOG %1"' <&4 & YPID=$!
printf "%s\n" "$(date '+%H:%M:%S')" "" >&4
wait $YPID
# Print return status of process $YPID
echo $?
exec 4>&-
exit 0Shell básico e Programação em Shell Julio Neves
Bacula Heitor Medrado
Zabbix Adail Host
Produção Gráfica e Videografismo Cadunico
--
You received this message because you are subscribed to the Google Groups "yad-common" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+unsubscribe@googlegroups.com.