会挽雕弓如满月,西北望,射天狼。|

园龄:粉丝:关注:

11 2022 档案

shell 并发
摘要:#!/bin/bash # 设置并发数 thread_num=3 # 创建管道文件 FIFO=/tmp/$$-FIFO mkfifo $FIFO # 使用句柄打开管道文件 exec 1000<>$FIFO rm -f $FIFO # 向管道里面输入若干行 for i in `seq $thread_
26
0
0
Linux: rsyslog.conf 配置
摘要:refer to: https://www.debian.org/doc/manuals/debian-handbook/sect.syslog.en.html 日志子系统 Each log message is associated with an application subsystem (c
272
0
0
shell: logging + readlog
摘要:logging #!/bin/bash # a small tool for logging sommething # # 1. read your input # 2. save to logs file >> ~/logs/$(date +%F) # # if command like: log
32
0
0
shell: xcall
摘要:#!/bin/bash ips=( 1.1.1.2 1.1.1.1 ) port= user= passwd= for i in ${ips[@]} do echo "== $i ==" sshpass -p "$passwd" ssh -p $port $user@$i "$@" done
7
0
0
expect: telnet2switch
摘要:#!/usr/bin/expect if {$argc != 1} { puts "usage: ./telnet2sswitch <r2|r3>" exit } if {"[lindex $argv 0]" == "r0"} {set ip 192.168.130.10 } if {"[linde
18
0
0
Centos 8 时钟同步
摘要:Centos 8 时钟同步使用的是 chrony 参考:https://www.cnblogs.com/my-show-time/p/14658895.html $ rpm -qa | grep chrony chrony-3.5-1.el8.aarch64 配置文件: vi /etc/chrony
121
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起