touch一个test.sh文件,按下方例子vim写入:
#!/bin/bashecho "---------start shell---"str_list=(a b c)for item in ${str_list[*]}do./your_exe_file $itemdone~
保存后,命令行敲chmod +x text.sh
,获得权限,然后./test.sh
执行即可。
如果觉得《shell脚本批量执行可执行文件》对你有帮助,请点赞、收藏,并留下你的观点哦!
时间:2019-01-06 07:48:02
touch一个test.sh文件,按下方例子vim写入:
#!/bin/bashecho "---------start shell---"str_list=(a b c)for item in ${str_list[*]}do./your_exe_file $itemdone~
保存后,命令行敲chmod +x text.sh
,获得权限,然后./test.sh
执行即可。
如果觉得《shell脚本批量执行可执行文件》对你有帮助,请点赞、收藏,并留下你的观点哦!
python调用可执行文件 如何从Python脚本调用可执行文件?
2022-09-02
python调用可执行文件_如何从Python脚本调用可执行文件?
2019-03-16
Linux中的二进制可执行文件和脚本可执行文件及Shebang
2020-06-22