阅读背景:

使用netcat的linux脚本在x小时后停止工作

来源:互联网 

I've have to scripts:

我必须要脚本:

#!/bin/bash

netcat -lk -p 12345 | while read line
do
    match=$(echo $line | grep -c 'Keep-Alive')
    if [ $match -eq 1 ]; then
        [start a command]
    fi
done
#!/bin/bash




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: