Scriptfiles are only accessable after login!

 

 

save sar to own logfile

Scriptcontent:

#!/bin/bash
cd /
/usr/bin/sar > /path_to_logdir/$(/bin/date +%d.%m.%Y)-sar.log

crontab entry:

59 23 * * * /path_to_script/script_file.sh

 

awk grep Einzeiler

grep "Blocked" /var/log/maillog|grep cbl.abuseat.org|awk -F " " '{print $25,"     ",$26}'

find all symlink to a target with find

find / -type l -ls 2>/dev/null|grep typo3_src-