2016年11月25日

golang中os/exec包用法

摘要: exec包执行外部命令,它将os.StartProcess进行包装使得它更容易映射到stdin和stdout,并且利用pipe连接i/o. 1.func LookPath(file string) (string, error) 在环境变量PATH指定的目录中搜索可执行文件,如file中有斜杠,则只 阅读全文

posted @ 2016-11-25 17:36 vijayfly 阅读(2943) 评论(0) 推荐(0) 编辑

导航