Detailed explanation and practice of Linux shell script -- a branch of shell script

Today, I will continue to introduce you to the basic knowledge of Linux. The main content of this article is the branch of Linux shell script. 1, shell branch -- if statement form In shell script, we usually use if statement to make the script execute different commands according to some conditions, which can greatly make the function of the ...

Posted by warik on Wed, 13 Oct 2021 07:11:18 -0700

Linux expect error prompt: bash: spawn: command not found; couldn't read file|expect installation | expect detailed explanation | expect exquisite case

[root@RHEL7 expect]# . ssh.exp bash: spawn: command not found... couldn't read file "{": no such file or directory bash: yes/no: No such file or directory Key point: first, let's talk about the root cause of the problem. 1. Make sure that expect's dependent tcl is installed 2. Make sure expect is installed Root cause of the problem: w ...

Posted by bryson on Fri, 01 Oct 2021 15:12:11 -0700