与托管以太坊节点的 OS 互动

Interact with the OS hosting an Ethereum node

有没有办法使用 Solidity 或者 Web3 调用系统(比如调用 traceroute)?如果这不是一个明确的问题,我正在想象执行一个合同并让该合同根据合同执行系统命令。

我想不出用我一直在学习的 Embark 来解决这个问题的方法,所以我想我只需要将 http 请求发送到 python 后端我会进行系统调用。谁能想到更好的方法?

没有直接的方法可以从 Solidity 访问文件系统。您仅限于 VM 命令。但是您可以使用 Oraclize to do HTTP requests to your server that will do the job: code examples as well as documentation. And here 是来自 Solidity 的 HTTP 请求的示例。