1.直接调用要执行的命令
exec sh -c {design_vision} #其中design_vision是要执行的shell命令
2.将要执行的shell命令写在脚本里,调用脚本文件
exec bash test.sh
test.sh文件内容如下:
参考:
http://static.kancloud.cn/dlover/note/1677677
https://blog.youkuaiyun.com/miao20091395/article/details/83308323