Pastebin

Paste #2252: 1.zsh

< previous paste - next paste>

Pasted by tdn

Download View as text

                                                                     
                                                                     
                                                                     
                                             
#!/bin/zsh

I=0
while [ -f run ]; do
    I=$((I+1))
    echo "Iteration $I" > /dev/stderr
    exec > $(printf "log.%03d " $I)
    echo "============================= BEGIN ============================================"
#    date
#    echo "--------------------------------------------------------------------------------"
    cat /etc/resolv.conf
    echo "--------------------------------------------------------------------------------"
    cat /proc/net/route
    echo "--------------------------------------------------------------------------------"
    iptables -L -nv
    echo "--------------------------------------------------------------------------------"
    route -n
    echo "--------------------------------------------------------------------------------"
    ifconfig | grep "addr"
#    echo "--------------------------------------------------------------------------------"
#    tail /var/log/everything/current
#    echo "--------------------------------------------------------------------------------"
#    w
    echo "============================== END ============================================="
    sleep 0.5
done
exit

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.