expect 定时关闭 shell 阻塞语句

演示

yum -y install expect
[root@sky ~]# cat sleep_test.exp
set timeout 5
spawn tailf gg.sql
expect eof
[root@sky ~]# expect sleep_test.exp
posted @ 2021-06-11 15:01  运维之爪  阅读(108)  评论(0编辑  收藏  举报