Your script doesn't even do the same thing. You are importing a library that implements SMTP, which is missing the point.
The AWK script doesn't need libraries, so it can actually be useful in places where you have awk but not Python.
The AWK script doesn't need libraries, so it can actually be useful in places where you have awk but not Python.
for example:
of course, you seem to think in gawk so if that works for you that's what you should continue doing!by the way, I hacked this example from another script which attached a logfile:
you can also use: and then: