LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 958|回复: 1

openbox 定义 kill 命令的问题

[复制链接]
发表于 2010-12-12 11:51:24 | 显示全部楼层 |阅读模式
<action name="Execute">
  <command>kill $(pidof tint2)</command>
</action>
不行

pidof tint2 为 6040
<action name="Execute">
  <command>kill 6040</command>
</action>
没问题

请教!
发表于 2010-12-18 16:00:56 | 显示全部楼层
A string which is the command to be executed, along with any arguments to be passed to it. The "~" tilde character will be expanded to your home directory, but no other shell expansions or scripting
---from openbox wiki
不支持shell脚本。。。
自己做个XXX.sh, 然后放到action算了吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表