Skip to content

This project was abandoned? [Sugestion] Add check of existing file #1

Description

@rodrigoslayertech

Many errors for non-existent files:

grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 73: let: CLEANCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 74: let: INFECTEDCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 77: let: IMAPLOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 78: let: IMAPLOGINFAILCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 79: let: IMAPIPV4LOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 80: let: IMAPIPV6LOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 81: let: IMAPLOCALLOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 84: let: POP3LOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 85: let: POP3LOGINFAILCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 86: let: POP3IPV4LOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 87: let: POP3IPV6LOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 88: let: POP3LOCALLOGINCOUNT=0+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 91: let: CONNECTIONCOUNT=5+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 92: let: CONNECTIONIPV4COUNT=5+: syntax error: operand expected (error token is "+")
grep: /var/log/mail.log.1: No such file or directory
./poststats.sh: line 93: let: CONNECTIONIPV6COUNT=0+: syntax error: operand expected (error token is "+")

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions