【发布时间】:2013-06-08 01:42:54
【问题描述】:
我想在我的 siriproxy 服务器中添加一些线路,以便能够使用 x10 cm19a 控制我的家庭自动化系统。
我找到了我的命令行让它工作,当我在终端中运行它时,一切正常:
karl@karl:~$ ./x10cmd rf a5 off
我尝试在执行此操作时将此行添加到我的 siriproxy 脚本中:
listen_for /turn the bedroom light on/i do
exec('./x10cmd rf a5 on')
say "i turn your light on"
request_complete
它正在工作,但它阻止了我的 siriproxy 运行,所以我尝试了:
listen_for /turn the bedroom light on/i do
`ls ./x10cmd rf a5 on`
say "i turn your light on"
request_complete
和
listen_for /turn the bedroom light on/i do
system('ls ./x10cmd rf a5 on')
say "i turn your light on"
request_complete
但没有任何效果。它一直在说:
ls 找不到目录。
你能帮忙吗?
【问题讨论】: