执行.sh脚本文件时出现文件格式错误,是因为缺少脚本文件解析行。 它的作用是告诉操作系统这个脚本需要用哪个解释器来执行。 把解析行添加在首行就可以了!!! #!/usr/bin/expect -f or #!/bin/bash linux - There was an error creating the child process for this terminal - Stack Overflowhttps://stackoverflow.com/questions/64248367/there-was-an-error-creating-the-child-process-for-this-terminal