当前位置: 首页 > news >正文

慈溪企业排名网站好孩子官方网站王建设

慈溪企业排名网站,好孩子官方网站王建设,wordpress创建页面路由,做服装有哪些好的网站有哪些Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌───────────────────────────────────────────────────────────────────│…
Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌───────────────────────────────────────────────────────────────────│                 • MobaXterm Personal Edition v23.2 •│               (SSH client, X server and network tools)││ ⮞ SSH session to code@192.168.235.10│   • Direct SSH      :  ✓│   • SSH compression :  ✓│   • SSH-browser     :  ✓│   • X11-forwarding  :(remote display is forwarded through SSH││ ⮞ For more info, ctrl+click on help or visit our website.└───────────────────────────────────────────────────────────────────Last login: Sun Aug 17 15:34:31 2025 from 192.168.235.1
[code@samba ~]$ vim for3.sh
[code@samba ~]$ cat for3.sh
sum=0
for i
do
let sum=$sum+$i
done
echo sum=$sum
[code@samba ~]$ chmod +x for3.sh
[code@samba ~]$ ./for3.sh
sum=0
[code@samba ~]$ ./
[code@samba ~]$ ./for3.sh 2
sum=2
[code@samba ~]$ ./for3.sh 9
sum=9
[code@samba ~]$

在这里插入图片描述

[code@samba ~]$ vim shift.sh
[code@samba ~]$ cat shift.sh
sum=0
while [ $# -ne 0 ]
do
let sum=$sum+$i
shift
done
echo sum=$sum[code@samba ~]$ ./shift.sh 2
-bash: ./shift.sh: 权限不够
[code@samba ~]$ chmod +x shift.sh
[code@samba ~]$ ./shift.sh
sum=0
[code@samba ~]$ /shift.sh 4
-bash: /shift.sh: 没有那个文件或目录
[code@samba ~]$ ./shift.sh 4
./shift.sh:行4: let: sum=0+: 语法错误: 期待操作数 (错误符号是 "+"sum=0
[code@samba ~]$
[code@samba ~]$ cat shift.sh
sum=0
while [ $# -ne 0 ]
do
let sum=$sum+$1
shift
done
echo sum=$sum[code@samba ~]$ ./shift.sh 4
sum=4

在这里插入图片描述
在这里插入图片描述

[code@samba ~]$ ./for3.sh
sum=0
[code@samba ~]$ ./for3.sh 4 5 3
sum=12
[code@samba ~]$ ./fot3.sh 5 34 54
-bash: ./fot3.sh: 没有那个文件或目录
[code@samba ~]$ ./for3.sh 231 2 32 3
sum=268
[code@samba ~]$ vim for4.sh
[code@samba ~]$ cat for4.sh
sum=0
for i
do
let sum=$sum+$i
done
echo sum=$sum:
true
false
[code@samba ~]$ ./for4.sh 324 32 4
sum=360
[code@samba ~]$

在这里插入图片描述

[code@samba ~]$ spawn ssh root@192.168.235.100
bash: spawn: 未找到命令...

在这里插入图片描述

[root@web ~]# cat expect.sh
spawn ssh@192.168.235.200
expect {"(yes/no)?" { send "yes\r";exp_continue }"password:" { send "123456\r" }
}
interact
#./expect.sh
# /expect.sh
#expect -f expect.sh
set ip 192.168.235.9
set pass 123456
set timeout 5
spawn ssh root@$ip
except {"yes/no" { send "yes\r";exp_continue }"password:" { send "$pass\r"}}
interact
[root@web ~]# ssh@192.168.235.200
bash: ssh@192.168.235.200: 未找到命令...
您在 /var/spool/mail/root 中有邮件
[root@web ~]# ssh root@192.168.235.200
root@192.168.235.200's password:
Permission denied, please try again.
root@192.168.235.200's password:
Last failed login: Wed Aug 20 23:19:20 CST 2025 from 192.168.235.20 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jul 16 21:25:52 2025 from 192.168.235.20
[root@client ~]# ^C
[root@client ~]# exit
登出
Connection to 192.168.235.200 closed.
您在 /var/spool/mail/root 中有邮件
[root@web ~]# ssh root@192.168.235.9
The authenticity of host '192.168.235.9 (192.168.235.9)' can't be established.
ECDSA key fingerprint is SHA256:l7oqyOLFBOYXfikXWZ6nAea7yct7UK3lp7zJ4/b5EDI.
ECDSA key fingerprint is MD5:7b:8c:da:2e:04:dc:6b:ec:12:6e:44:75:11:30:40:02.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
[root@web ~]# ssh root@192.168.235.9
The authenticity of host '192.168.235.9 (192.168.235.9)' can't be established.
ECDSA key fingerprint is SHA256:l7oqyOLFBOYXfikXWZ6nAea7yct7UK3lp7zJ4/b5EDI.
ECDSA key fingerprint is MD5:7b:8c:da:2e:04:dc:6b:ec:12:6e:44:75:11:30:40:02.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.235.9' (ECDSA) to the list of known hosts.
root@192.168.235.9's password:
Permission denied, please try again.
root@192.168.235.9's password:
Last failed login: Wed Aug 20 23:20:01 CST 2025 from 192.168.235.20 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Aug 20 23:11:58 2025 from 192.168.235.1
-bash-4.2# exit
登出
Connection to 192.168.235.9 closed.
您在 /var/spool/mail/root 中有邮件
[root@web ~]# chmod +x expect.sh
[root@web ~]# ./expect.sh
./expect.sh:行1: spawn: 未找到命令
couldn't read file "{": no such file or directory
./expect.sh:行3: (yes/no)?: 没有那个文件或目录
./expect.sh:行3: exp_continue: 未找到命令
./expect.sh:行4: password:: 未找到命令
./expect.sh:行5: 未预期的符号 `}' 附近有语法错误
./expect.sh:行5: `}'
您在 /var/spool/mail/root 中有邮件
[root@web ~]#

记录

Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌───────────────────────────────────────────────────────────────────│                 • MobaXterm Personal Edition v23.2 •│               (SSH client, X server and network tools)││ ⮞ SSH session to code@192.168.235.10│   • Direct SSH      :  ✓│   • SSH compression :  ✓│   • SSH-browser     :  ✓│   • X11-forwarding  :(remote display is forwarded through SSH││ ⮞ For more info, ctrl+click on help or visit our website.└───────────────────────────────────────────────────────────────────Last login: Sun Aug 17 15:34:31 2025 from 192.168.235.1
[code@samba ~]$ vim for3.sh
[code@samba ~]$ cat for3.sh
sum=0
for i
do
let sum=$sum+$i
done
echo sum=$sum
[code@samba ~]$ chmod +x for3.sh
[code@samba ~]$ ./for3.sh
sum=0
[code@samba ~]$ ./for3.sh 2
sum=2
[code@samba ~]$ ./for3.sh 9
sum=9
[code@samba ~]$ ./for3.sh 23
sum=23
[code@samba ~]$ vim shift.sh
[code@samba ~]$ cat shift.sh
sum=0
while [ $# -ne 0 ]
do
let sum=$sum+$i
shift
done
echo sum=$sum[code@samba ~]$ ./shift.sh 2
-bash: ./shift.sh: 权限不够
[code@samba ~]$ chmod +x shift.sh
[code@samba ~]$ ./shift.sh
sum=0
[code@samba ~]$ /shift.sh 4
-bash: /shift.sh: 没有那个文件或目录
[code@samba ~]$ ./shift.sh 4
./shift.sh:行4: let: sum=0+: 语法错误: 期待操作数 (错误符号是 "+"sum=0
[code@samba ~]$ vim shift.sh
[code@samba ~]$ cat shift.sh
sum=0
while [ $# -ne 0 ]
do
let sum=$sum+$1
shift
done
echo sum=$sum[code@samba ~]$ ./shift.sh 4
sum=4
[code@samba ~]$ ./shift.sh 33 44 32
sum=109
[code@samba ~]$ ./shift.sh 21 3 2 1 32
sum=59
[code@samba ~]$ ./for3.sh
sum=0
[code@samba ~]$ ./for3.sh 4 5 3
sum=12
[code@samba ~]$ ./fot3.sh 5 34 54
-bash: ./fot3.sh: 没有那个文件或目录
[code@samba ~]$ ./for3.sh 231 2 32 3
sum=268
[code@samba ~]$ vim for4.sh
[code@samba ~]$ cat for4.sh
sum=0
for i
do
let sum=$sum+$i
done
echo sum=$si,:
true
false
[code@samba ~]$ chmod +x for4.sh
[code@samba ~]$ ./for4.sh
sum=,
[code@samba ~]$ ./for4.sh 32 42
sum=,
[code@samba ~]$ vim for4.sh
[code@samba ~]$ cat for4.sh
sum=0
for i
do
let sum=$sum+$i
done
echo sum=$sum:
true
false
[code@samba ~]$ ./for4.sh 324 32 4
sum=360
[code@samba ~]$ ssh root@192.168.235.100
The authenticity of host '192.168.235.100 (192.168.235.100)' can't be established.
ECDSA key fingerprint is SHA256:PbCAj5CjyP8yLyHMKdEPFFA4planWCr8FpxrrOp3d+I.
ECDSA key fingerprint is MD5:5b:0a:38:81:36:32:b6:38:d1:d8:3b:61:12:39:5a:fc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.235.100' (ECDSA) to the list of known hosts.
root@192.168.235.100's password:
Last login: Sun Aug 17 08:10:51 2025
[root@backup ~]# exit
登出
Connection to 192.168.235.100 closed.
[code@samba ~]$
root@192.168.235.20's password:
▒▒▒ʱ▒▒ܾ▒
root@192.168.235.20's password:┌────────────────────────────────────────────────────────────────────┐│                        • MobaXterm 20.0 •                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ➤ SSH session to root@192.168.235.20                               ││   • SSH compression : ✘                                            ││   • SSH-browser     : ✔                                            ││   • X11-forwarding  :(remote display is forwarded through SSH) ││   • DISPLAY         :(automatically set on remote server)      ││                                                                    ││ ➤ For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last failed login: Wed Aug 20 22:43:17 CST 2025 from 192.168.235.1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Tue Aug 19 21:42:09 2025 from 192.168.235.1
[root@web ~]# spawn ssh root@192.168.235.200
bash: spawn: 未找到命令...
您在 /var/spool/mail/root 中有新邮件
[root@web ~]# systemctl status expect
Unit expect.service could not be found.
您在 /var/spool/mail/root 中有邮件
[root@web ~]# yum install except
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
没有可用软件包 except。
错误:无须任何处理
[root@web ~]# yum install expect
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 expect.x86_64.0.5.45-14.el7_1 将被 安装
--> 正在处理依赖关系 libtcl8.5.so()(64bit),它被软件包 expect-5.45-14.el7_1.x86_64 需要
--> 正在检查事务
---> 软件包 tcl.x86_64.1.8.5.13-8.el7 将被 安装
--> 解决依赖关系完成依赖关系解决=========================================================================================================================================================Package                           架构                              版本                                         源                                大小
=========================================================================================================================================================
正在安装:expect                            x86_64                            5.45-14.el7_1                                local                            262 k
为依赖而安装:tcl                               x86_64                            1:8.5.13-8.el7                               local                            1.9 M事务概要
=========================================================================================================================================================
安装  1 软件包 (+1 依赖软件包)总下载量:2.1 M
安装大小:4.9 M
Is this ok [y/d/N]: y
Downloading packages:
---------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                     393 kB/s | 2.1 MB  00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : 1:tcl-8.5.13-8.el7.x86_64                                                                                                            1/2正在安装    : expect-5.45-14.el7_1.x86_64                                                                                                          2/2验证中      : 1:tcl-8.5.13-8.el7.x86_64                                                                                                            1/2验证中      : expect-5.45-14.el7_1.x86_64                                                                                                          2/2已安装:expect.x86_64 0:5.45-14.el7_1作为依赖被安装:tcl.x86_64 1:8.5.13-8.el7完毕!
您在 /var/spool/mail/root 中有邮件
[root@web ~]# spawn ssh root@192.168.235.200
bash: spawn: 未找到命令...
您在 /var/spool/mail/root 中有邮件
[root@web ~]# expect {
couldn't read file "{": no such file or directory
[root@web ~]# vim expect.sh
您在 /var/spool/mail/root 中有邮件
[root@web ~]# cat expect.sh
spawn ssh@192.168.235.200
expect {"(yes/no)?" { send "yes\r";exp_continue }"password:" { send "123456\r" }
}
interact
#./expect.sh
# /expect.sh
#expect -f expect.sh
set ip 192.168.235.9
set pass 123456
set timeout 5
spawn ssh root@$ip
except {"yes/no" { send "yes\r";exp_continue }"password:" { send "$pass\r"}}
interact
[root@web ~]# ssh@192.168.235.200
bash: ssh@192.168.235.200: 未找到命令...
您在 /var/spool/mail/root 中有邮件
[root@web ~]# ssh root@192.168.235.200
root@192.168.235.200's password:
Permission denied, please try again.
root@192.168.235.200's password:
Last failed login: Wed Aug 20 23:19:20 CST 2025 from 192.168.235.20 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jul 16 21:25:52 2025 from 192.168.235.20
[root@client ~]# ^C
[root@client ~]# exit
登出
Connection to 192.168.235.200 closed.
您在 /var/spool/mail/root 中有邮件
[root@web ~]# ssh root@192.168.235.9
The authenticity of host '192.168.235.9 (192.168.235.9)' can't be established.
ECDSA key fingerprint is SHA256:l7oqyOLFBOYXfikXWZ6nAea7yct7UK3lp7zJ4/b5EDI.
ECDSA key fingerprint is MD5:7b:8c:da:2e:04:dc:6b:ec:12:6e:44:75:11:30:40:02.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
[root@web ~]# ssh root@192.168.235.9
The authenticity of host '192.168.235.9 (192.168.235.9)' can't be established.
ECDSA key fingerprint is SHA256:l7oqyOLFBOYXfikXWZ6nAea7yct7UK3lp7zJ4/b5EDI.
ECDSA key fingerprint is MD5:7b:8c:da:2e:04:dc:6b:ec:12:6e:44:75:11:30:40:02.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.235.9' (ECDSA) to the list of known hosts.
root@192.168.235.9's password:
Permission denied, please try again.
root@192.168.235.9's password:
Last failed login: Wed Aug 20 23:20:01 CST 2025 from 192.168.235.20 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Aug 20 23:11:58 2025 from 192.168.235.1
-bash-4.2# exit
登出
Connection to 192.168.235.9 closed.
您在 /var/spool/mail/root 中有邮件
[root@web ~]# chmod +x expect.sh
[root@web ~]# ./expect.sh
./expect.sh:行1: spawn: 未找到命令
couldn't read file "{": no such file or directory
./expect.sh:行3: (yes/no)?: 没有那个文件或目录
./expect.sh:行3: exp_continue: 未找到命令
./expect.sh:行4: password:: 未找到命令
./expect.sh:行5: 未预期的符号 `}' 附近有语法错误
./expect.sh:行5: `}'
您在 /var/spool/mail/root 中有邮件
[root@web ~]#
http://www.dtcms.com/a/402106.html

相关文章:

  • 网站建设行业细分国外网站众筹怎做
  • 动漫网站网页设计商城网站平台怎么做的
  • 潍坊 优化型网站建设wordpress frp
  • 先做网站 先备案市场调研报告1500字
  • 学做分类网站自己建网站需要多少钱
  • 专业制作网站价格云开发网站
  • wordpress升级说版本低青岛网站seo诊断
  • 网站关键词分隔专业做物流公司网站
  • 友情下载网站客户端 网站开发 手机软件开发
  • 无锡微信网站建设价格公司网站建设7个基本流程
  • 做个小程序需要花多少钱优化关键词步骤
  • 青海海东平安县建设局网站汕头网站建设
  • 没有网站可以做cpa广告么二级域名做外贸网站好吗
  • 开封+网站建设+网络推广随身办app下载
  • 网站怎么做用qq登录接入大创网
  • 网站做app收费标准我国档案网站建设比较分析
  • 知乎免费阅读网站软件开发人员招聘
  • wordpress能做流量站吗哪一些网站可以开户做百度广告
  • 网站注册域名位置做淘宝客的的网站有什么要求
  • 兰州新区城乡建设局网站房源网站建设
  • 中国网站设计门户网站建设工序
  • 网站评论管理怎么做的福州网站建设询q479185700上快
  • 网站推广是网站建设完成之后的长期工作。网站做整合页面
  • 贵城乡建设官方网站非专业人士可以做网站编辑的工作吗
  • 卖设备用哪个网站2345网址导航中国百年品牌
  • 免费p2p网站建设深圳建站公司有推荐的公司吗
  • 单页做网站教程wordpress移除快速发布
  • 微软网站开发wordpress5.2添加外链
  • 怎么做刷赞网站娄底网站建设开发
  • 佛山网站建设网络公司网站开发询价表模板下载