首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在YAD按钮点击时运行其他bash脚本?

如何在YAD按钮点击时运行其他bash脚本?
EN

Stack Overflow用户
提问于 2017-01-11 14:30:53
回答 0查看 2.1K关注 0票数 0

代码:

代码语言:javascript
复制
#!/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脚本,而不会消失按钮。如何解决这个问题?谢谢。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41584139

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档