Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rodrigoslayertech opened this issue Jul 22, 2021 · 1 comment

Comments

@rodrigoslayertech
Copy link

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 "+")

...

@jp1337
Copy link
Owner

jp1337 commented Jul 22, 2021

Hi there :)
This project is one of my first bash scripts I have ever written.
When I read the script minutes ago I got some heavy goosebumps since this is a total crap :D
Hopefully I will have some time to fix the script.

Back to your issue:
Can you check you /var/log/ directory for mail files?
I think /var/log/mail.log only exists on Debian Servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants