Initial commit

This commit is contained in:
Charlie Root 2025-03-01 00:58:18 +01:00
commit 529efd53a1
140 changed files with 10310 additions and 0 deletions

24
sudo_cmd/mng_maillog.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/sh -x
. /usr/home/web/default/petar.company/cfg_apps/petar/petar.cfg
ACTION=${1}
cd ${BASEDIR}
PATTERN=${2}
MAILLOG=${3}
if [ ${ACTION} = "STEP1" ]
then
/usr/bin/zgrep -i ${PATTERN} ${MAILLOG} | cut -f4 -d: | sort -u
fi
if [ ${ACTION} = "STEP2" ]
then
/usr/bin/zgrep -i ${PATTERN} ${MAILLOG}
fi