编码:
#!/bin/bash
# YAD GUI to the set of Shell Linux script
frmdata=$(yad --title "Input SRA accession number" --form --field
"SRA ID")
frmaddr=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $1 }')
echo $frmaddr > SRAIds.txt files=$(yad --width 100 --height 100
--title "Choose the action you want to be done" \
--text=" Please enter what to do:" \
--button="Download Files":"./fetch_sra_yad_zenity.sh"
\ # calling the other bash script on the button click
--button="Run alignment" \
--button="Process variant calling" \
--button="Cancel" \
--on-top \
--center \ )
ret=$?
[[ $ret -eq 1 ]] && exit 0
需要在相关按钮点击时运行 .sh 脚本,而不会使按钮消失。如何解决?谢谢。