Hi All,
I've written a small shell script that emails some audit information from Redhat Linux 9 to a support email address.
What I want to be able to do is change the script so that it browses a logfile directory. If any files exist in that directory, mail those files as attachments (currently I'm using mail -s ..... to send emails).
Presumptions:
1. The files that exist in the log file directory will always be plain text (no graphics etc).
Can this be done? If so could someone please help?
Also what I've managed to pick up so far is that any attachment files always seem to be uuencoded. Is this still relevant even though any file I want to attach will be plain text?
If this is the case what .rpm files will I need to install on the Redhat 9 server? Currently I have the bare minimum of packages installed (no X Windows etc).
Many Thanks,
Rab.
I've written a small shell script that emails some audit information from Redhat Linux 9 to a support email address.
What I want to be able to do is change the script so that it browses a logfile directory. If any files exist in that directory, mail those files as attachments (currently I'm using mail -s ..... to send emails).
Presumptions:
1. The files that exist in the log file directory will always be plain text (no graphics etc).
Can this be done? If so could someone please help?
Also what I've managed to pick up so far is that any attachment files always seem to be uuencoded. Is this still relevant even though any file I want to attach will be plain text?
If this is the case what .rpm files will I need to install on the Redhat 9 server? Currently I have the bare minimum of packages installed (no X Windows etc).
Many Thanks,
Rab.