On Friday 01 February 2008 08:48:02 Peter Boosten wrote:
[EMAIL PROTECTED] wrote:
I know I can use
mail -s logfile /var/log/httpd_access.log
in cron to email the content of a log file to a particular email
address but how do I make that log file a binary attachment (*.gz)?
gzip
Hello,
I know I can use
mail -s logfile /var/log/httpd_access.log
in cron to email the content of a log file to a particular email
address but how do I make that log file a binary attachment (*.gz)?
Also, is it possible to actually transfer the log file by ftp using cron?
If so, would anyone
Zbigniew Szalbot wrote:
Hello,
I know I can use
mail -s logfile /var/log/httpd_access.log
in cron to email the content of a log file to a particular email
address but how do I make that log file a binary attachment (*.gz)?
gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz |
I know I can use
mail -s logfile /var/log/httpd_access.log
in cron to email the content of a log file to a particular email
address but how do I make that log file a binary attachment (*.gz)?
gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail
-s logfile
[EMAIL PROTECTED] wrote:
I know I can use
mail -s logfile /var/log/httpd_access.log
in cron to email the content of a log file to a particular email
address but how do I make that log file a binary attachment (*.gz)?
gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail
-s