Portál AbcLinuxu, 5. listopadu 2025 22:05
ERROR tcpdump start perror.
#!/bin/sh
SKRIPT=`pidof -x tcpdump`;
DAT=`date +"%Y-%m-%d:%H%M%S"`;
if [ -z "$SKRIPT" ]; then
echo "$DAT Starting sshdump" >> /root/log/dumplog;
tcpdump -i eth0 -s 1500 -w /root/log/ssh-${DAT} port 22;
if [ "$?" -ne 0 ]; then
echo "$DAT ERROR tcpdump start perror" >> /root/log/dumplog;
fi
fi
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.