08 2024 档案

linux命令拦截
摘要:1. ~/.ucm/record_command.sh #!/usr/bin/bashrecord_cmd(){ printf "recording command:[$1]\n"} if [ $2 == 0 ];then record_cmd "$1"else record_cmd "$1" pr 阅读全文

posted @ 2024-08-16 10:51 heysong 阅读(22) 评论(0) 推荐(0) 编辑

expect的使用
摘要:安装 yum install expect xxx.exp编写 #!/usr/bin/expect -f set timeout -1 set password [lindex $argv 0] spawn vncpasswd expect "*assword*" send "$password\r 阅读全文

posted @ 2024-08-05 16:22 heysong 阅读(3) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示