shell隧道获取 ping 命令返回结果
#!/bin/sh
mkfifo tmpfile
exec 6<>tmpfile
ping 192.168.6.77>&6 &
i=0
while [ $i -le 10 ]
do
read a<&6
date
# echo $a
i=`expr $i + 1`
done
exec 6>&-
rm tmpfile
2024-04-07 06:09:21 阅读次数:15
#!/bin/sh
mkfifo tmpfile
exec 6<>tmpfile
ping 192.168.6.77>&6 &
i=0
while [ $i -le 10 ]
do
read a<&6
date
# echo $a
i=`expr $i + 1`
done
exec 6>&-
rm tmpfile
上一篇:fatal: Not a git repository (or any of the parent directories): .git
下一篇:shell sed命令
shell 菱形图案
shell脚本安装Nginx
加油人类!(适合人类使用的单位的格式化程序)
登录服务器后,提示-bash-4.2# 该如何解决?
ubuntu18.04安装anaconda后终端出现base字样
Python:环境变量设置PYTHONPATH解决impor导入模块报错
mac下使用brew安装node.js环境
Nuxt.js路由参数传递和接收
推荐几款比较顺眼的XShell配色方案
IPython 是一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell 命令,内置了许多很有用的功能和函数。
文章
22507
阅读量
2173309
2024-06-28 06:18:15
2024-06-28 06:18:15
2024-06-27 09:20:52
2024-06-26 06:20:12
2024-06-25 08:05:47
2024-06-25 08:05:47
2023-03-21 10:27:32
2023-03-20 07:19:51
2023-05-11 06:17:27
2023-05-08 10:00:50
2024-06-28 06:18:15
2022-12-29 09:29:46